Merge pull request 'dd' (#546) from dd into master

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/546
This commit is contained in:
2024-07-14 08:43:41 +00:00
33 changed files with 600 additions and 144 deletions

View File

@@ -77,6 +77,7 @@ const tagsViewStore = useTagsView()
const userInfo = ref({})
const visitedP = ref(false)
const accountList = ref([])
const route = useRoute()
const router = useRouter()
onMounted(() => {
setUserInfo()
@@ -117,8 +118,12 @@ const accountChange = (userId) => {
visitedP.value = !visitedP.value
authStore.userLogout()
setToken(res.data)
router.push('/')
console.log('router',route)
if(route.path!=='/'){
}
location.reload()
// router.push('/home')
visitedP.value = false
}
})