有时候需求进入页面调用用户权限接口 这时候在main.js请求是最好的
main.js请求写法
const getUpdateTime = (async()=>{
let params = {
}
const res = await $http(params,'getUpdateTime');
})
getUpdateTime()
有时候需求进入页面调用用户权限接口 这时候在main.js请求是最好的
main.js请求写法
const getUpdateTime = (async()=>{
let params = {
}
const res = await $http(params,'getUpdateTime');
})
getUpdateTime()