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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user