mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 07:43:42 +08:00 
			
		
		
		
	fix(projects): fix set tab title (fixed #256)
This commit is contained in:
		@@ -68,7 +68,11 @@ export const useTabStore = defineStore('tab-store', {
 | 
			
		||||
    setActiveTabTitle(title: string) {
 | 
			
		||||
      const item = this.tabs.find(tab => tab.fullPath === this.activeTab);
 | 
			
		||||
      if (item) {
 | 
			
		||||
        item.meta.title = title;
 | 
			
		||||
        if (item.meta.i18nTitle) {
 | 
			
		||||
          item.meta.i18nTitle = title;
 | 
			
		||||
        } else {
 | 
			
		||||
          item.meta.title = title;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user