|
@@ -82,6 +82,8 @@ const changeOrg = async (orgId) => {
|
|
|
const res = await proxy.$http.post(`/open-platform/sys/changeSURO/${orgId}`)
|
|
|
console.log('切换机构结果:', res)
|
|
|
saveSessionVar('org_id', orgId)
|
|
|
+ saveSessionVar("knowledageSystem", '');
|
|
|
+ saveSessionVar('routeList', '')
|
|
|
// 可选:刷新页面或重新拉取权限/菜单等
|
|
|
updateRouteList([]);
|
|
|
let knowledageSystem = '';
|
|
@@ -117,11 +119,14 @@ const changeOrg = async (orgId) => {
|
|
|
saveSessionVar('routeList', JSON.stringify(routeList))
|
|
|
|
|
|
updateRouteList(routeList);
|
|
|
- // window.location.reload()
|
|
|
+
|
|
|
+ // 刷新页面
|
|
|
+ window.location.href = '/kmplatform/home';
|
|
|
}
|
|
|
|
|
|
let editPassShow = ref(false)
|
|
|
const currentPath = computed(() => {
|
|
|
+ console.log('当前路由:', route)
|
|
|
let temp = ""
|
|
|
for (let i = 0; i < routeList.length; i++) {
|
|
|
for (let j = 0; j < route.matched.length; j++) {
|