Commit 2b6adfbb authored by 罗超's avatar 罗超

处理菜单的初始化问题

parent befc0b59
...@@ -210,7 +210,8 @@ export const useSystemConfigStore = defineStore('systemConfig', { ...@@ -210,7 +210,8 @@ export const useSystemConfigStore = defineStore('systemConfig', {
* 根据域名获取租户信息和平台配置 * 根据域名获取租户信息和平台配置
*/ */
async initialize(domainName?: string): Promise<void> { async initialize(domainName?: string): Promise<void> {
// 如果已经初始化过且没有指定新域名,直接返回 this.navs = null
if (this.tenantId && this.tenantId.length > 0 && domainName) { if (this.tenantId && this.tenantId.length > 0 && domainName) {
await this.queryTenantInfoAsyncAsync(domainName) await this.queryTenantInfoAsyncAsync(domainName)
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment