前端最新版本同步
This commit is contained in:
@@ -67,7 +67,8 @@
|
||||
<script setup name="SetUser">
|
||||
import bindUser from "./bindUser";
|
||||
import { getTenantUserPage, unbindTenantUser } from "@/api/system/tenant";
|
||||
|
||||
// 在 <script setup> 顶部添加导入
|
||||
import { ref, reactive, onMounted } from "vue"; // 补充 onMounted 导入
|
||||
const route = useRoute();
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { sys_normal_disable } = proxy.useDict("sys_normal_disable");
|
||||
@@ -140,5 +141,8 @@ function cancelBindUserAll() {
|
||||
}).catch(() => { });
|
||||
}
|
||||
|
||||
getList();
|
||||
// 显式使用 onMounted,组件挂载后执行数据加载
|
||||
onMounted(() => {
|
||||
getList(); // 组件挂载完成后,发起用户列表请求
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user