mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 15:53:43 +08:00 
			
		
		
		
	optimize(projects): optimize code
This commit is contained in:
		@@ -7,8 +7,8 @@ import { useRouterPush } from '@/hooks/common/router';
 | 
				
			|||||||
import { fetchGetUserInfo, fetchLogin } from '@/service/api';
 | 
					import { fetchGetUserInfo, fetchLogin } from '@/service/api';
 | 
				
			||||||
import { localStg } from '@/utils/storage';
 | 
					import { localStg } from '@/utils/storage';
 | 
				
			||||||
import { $t } from '@/locales';
 | 
					import { $t } from '@/locales';
 | 
				
			||||||
import { useTabStore } from '@/store/modules/tab';
 | 
					 | 
				
			||||||
import { useRouteStore } from '../route';
 | 
					import { useRouteStore } from '../route';
 | 
				
			||||||
 | 
					import { useTabStore } from '../tab';
 | 
				
			||||||
import { clearAuthStorage, getToken } from './shared';
 | 
					import { clearAuthStorage, getToken } from './shared';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
 | 
					export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								src/typings/global.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								src/typings/global.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -14,6 +14,10 @@ declare global {
 | 
				
			|||||||
    $notification?: import('naive-ui').NotificationProviderInst;
 | 
					    $notification?: import('naive-ui').NotificationProviderInst;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  interface ViewTransition {
 | 
				
			||||||
 | 
					    ready: Promise<void>;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  export interface Document {
 | 
					  export interface Document {
 | 
				
			||||||
    startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition;
 | 
					    startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -21,7 +25,3 @@ declare global {
 | 
				
			|||||||
  /** Build time of the project */
 | 
					  /** Build time of the project */
 | 
				
			||||||
  export const BUILD_TIME: string;
 | 
					  export const BUILD_TIME: string;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
interface ViewTransition {
 | 
					 | 
				
			||||||
  ready: Promise<void>;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user