优化组件类型声明,添加视频播放功能,更新依赖项,重构多个组件,改进路由配置及页面元信息
This commit is contained in:
@ -129,7 +129,7 @@ const options = ref([
|
||||
|
||||
// 图片数据
|
||||
const navlist: any = ref([])
|
||||
|
||||
const usrLog = $store.log.useLogStore()
|
||||
async function getNavList() {
|
||||
const res = await $http.nav.getNavList()
|
||||
res.data?.forEach((i: any) => {
|
||||
@ -223,6 +223,16 @@ async function navSubmit() {
|
||||
|
||||
|
||||
}
|
||||
// 监听store的登录状态
|
||||
watch(() => usrLog.isLogin, (newVal) => {
|
||||
console.log('********** --> watch --> newVal:', newVal)
|
||||
if (newVal) {
|
||||
getNavList()
|
||||
}else {
|
||||
navlist.value = []
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user