兰宝车间质量管理系统-前端
LiuHao
2023-04-21 1eda36201af83f63f4f33afef109730895956aa2
src/layout/components/Navbar.vue
@@ -73,18 +73,18 @@
</template>
<script setup lang="ts">
import SearchMenu from './topBar/search.vue'
import useAppStore from '@/store/modules/app'
import useUserStore from '@/store/modules/user'
import useSettingsStore from '@/store/modules/settings'
import SearchMenu from './topBar/search.vue';
import useAppStore from '@/store/modules/app';
import useUserStore from '@/store/modules/user';
import useSettingsStore from '@/store/modules/settings';
import { getTenantList } from "@/api/login";
import { dynamicClear, dynamicTenant } from "@/api/system/tenant";
import { ComponentInternalInstance } from "vue";
import { TenantVO } from "@/api/types";
const appStore = useAppStore()
const userStore = useUserStore()
const settingsStore = useSettingsStore()
const appStore = useAppStore();
const userStore = useUserStore();
const settingsStore = useSettingsStore();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -99,7 +99,7 @@
const searchMenuRef = ref<InstanceType<typeof SearchMenu>>();
const openSearchMenu = () => {
  searchMenuRef.value?.openSearch()
  searchMenuRef.value?.openSearch();
}
// 动态切换
@@ -116,7 +116,7 @@
    await dynamicClear();
    dynamic.value = false;
    proxy?.$tab.closeAllPage();
    proxy?.$router.push('/')
  proxy?.$router.push('/');
}
/** 租户列表 */
@@ -133,7 +133,7 @@
})
const toggleSideBar = () => {
    appStore.toggleSideBar(false)
  appStore.toggleSideBar(false);
}
const logout = async () => {