mirror of https://github.com/certd/certd
				
				
				
			chore:
							parent
							
								
									9b68009eb3
								
							
						
					
					
						commit
						a10b8aa042
					
				|  | @ -93,7 +93,7 @@ | |||
| </template> | ||||
| 
 | ||||
| <script lang="ts" setup> | ||||
| import { computed, onErrorCaptured, ref } from "vue"; | ||||
| import { computed, onErrorCaptured, onMounted, ref } from "vue"; | ||||
| import FsMenu from "./components/menu/index.jsx"; | ||||
| import FsLocale from "./components/locale/index.vue"; | ||||
| import FsUserInfo from "./components/user-info/index.vue"; | ||||
|  | @ -143,6 +143,10 @@ const settingStore = useSettingStore(); | |||
| const siteInfo = computed(() => { | ||||
|   return settingStore.siteInfo; | ||||
| }); | ||||
| 
 | ||||
| onMounted(async () => { | ||||
|   await settingStore.checkUrlBound(); | ||||
| }); | ||||
| </script> | ||||
| <style lang="less"> | ||||
| @import "../style/theme/index.less"; | ||||
|  |  | |||
|  | @ -136,7 +136,6 @@ export const useSettingStore = defineStore({ | |||
|       _.merge(this.plusInfo, allSettings.plusInfo || {}); | ||||
|       //@ts-ignore
 | ||||
|       this.initSiteInfo(allSettings.siteInfo || {}); | ||||
|       await this.checkUrlBound(); | ||||
|     }, | ||||
|     initSiteInfo(siteInfo: SiteInfo) { | ||||
|       //@ts-ignore
 | ||||
|  |  | |||
|  | @ -61,6 +61,8 @@ export class AutoInitSite { | |||
|     } | ||||
| 
 | ||||
|     logger.info('初始化站点完成'); | ||||
|     // const pkg = require('../../../package.json');
 | ||||
|     // logger.info(`当前版本为:${pkg.version}`);
 | ||||
|   } | ||||
| 
 | ||||
|   async startOptimizeDb() { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 xiaojunnuo
						xiaojunnuo