1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-02 14:20:21 +08:00

fix: 解决vite5循环引用导致热更新失效问题

This commit is contained in:
zclzone
2024-01-06 18:47:40 +08:00
parent c4fd0459ab
commit 2c9604a829
14 changed files with 351 additions and 317 deletions

View File

@@ -62,7 +62,8 @@ function open(options) {
async function setCurrentRole() {
try {
okLoading.value = true
await userStore.switchCurrentRole(roleCode.value)
const { data } = await api.switchCurrentRole(roleCode.value)
await authStore.switchCurrentRole(data)
okLoading.value = false
$message.success('切换成功')
modalRef.value?.handleOk()