Browse Source

fix: 补充切换组织刷新页面

deploy-dev
xuziqiang 4 months ago
parent
commit
df0f1f62ad
  1. 2
      hx-ai-intelligent/src/config/app.config.ts
  2. 4
      hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue

2
hx-ai-intelligent/src/config/app.config.ts

@ -52,7 +52,7 @@ export const appConfig = {
sessionStorage.setItem('ORGID', record.orgId); sessionStorage.setItem('ORGID', record.orgId);
const res = await configStore.userResource({ data: record }); const res = await configStore.userResource({ data: record });
useAuthorization.updateUserResource(res.data); useAuthorization.updateUserResource(res.data);
window.location.reload();
// value.value = cur; // value.value = cur;
}, },
resultField: 'data.linkList', resultField: 'data.linkList',

4
hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue

@ -194,10 +194,10 @@
const selectRoleRef = ref(); const selectRoleRef = ref();
const formSchema = formConfig(disabled as any); const formSchema = formConfig(disabled as any);
const formSchema2 = formConfig2(roleDisabled as any); const formSchema2 = formConfig2(roleDisabled as any);
const { orgName, projectId, orgId } = JSON.parse( const { orgName, projectId } = JSON.parse(
sessionStorage.getItem(import.meta.env.VITE_PUBLIC_PATH), sessionStorage.getItem(import.meta.env.VITE_PUBLIC_PATH),
); );
// const orgId = JSON.parse(sessionStorage.getItem('ORGID')); const orgId = JSON.parse(sessionStorage.getItem('ORGID'));
const roleTreeData = ref([]); const roleTreeData = ref([]);
const rolePermissionTreeData = ref([]); const rolePermissionTreeData = ref([]);
const deptTreeData = ref([]); const deptTreeData = ref([]);

Loading…
Cancel
Save