优化组件类型声明,添加用户信息检查逻辑,更新导航列表处理
This commit is contained in:
@ -150,6 +150,11 @@ const tagList: any = ref([
|
||||
|
||||
const usrLog = $store.log.useLogStore()
|
||||
async function getNavList() {
|
||||
const userinfo = $cookies.get("userinfo")
|
||||
if (!userinfo) {
|
||||
navlist.value = []
|
||||
return
|
||||
}
|
||||
const res = await $http.nav.getNavList()
|
||||
res.data?.forEach((i: any) => {
|
||||
i.icon_error = false
|
||||
|
||||
Reference in New Issue
Block a user