mirror of https://github.com/certd/certd
Merge branch 'refs/heads/v2' into v2-dev
commit
67ba17286c
|
@ -93,7 +93,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<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 FsMenu from "./components/menu/index.jsx";
|
||||||
import FsLocale from "./components/locale/index.vue";
|
import FsLocale from "./components/locale/index.vue";
|
||||||
import FsUserInfo from "./components/user-info/index.vue";
|
import FsUserInfo from "./components/user-info/index.vue";
|
||||||
|
@ -146,6 +146,10 @@ const sysPublic = computed(() => {
|
||||||
const siteInfo = computed(() => {
|
const siteInfo = computed(() => {
|
||||||
return settingStore.siteInfo;
|
return settingStore.siteInfo;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
await settingStore.checkUrlBound();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
@import "../style/theme/index.less";
|
@import "../style/theme/index.less";
|
||||||
|
|
|
@ -135,7 +135,6 @@ export const useSettingStore = defineStore({
|
||||||
_.merge(this.plusInfo, allSettings.plusInfo || {});
|
_.merge(this.plusInfo, allSettings.plusInfo || {});
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
this.initSiteInfo(allSettings.siteInfo || {});
|
this.initSiteInfo(allSettings.siteInfo || {});
|
||||||
await this.checkUrlBound();
|
|
||||||
},
|
},
|
||||||
initSiteInfo(siteInfo: SiteInfo) {
|
initSiteInfo(siteInfo: SiteInfo) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
|
|
|
@ -63,6 +63,8 @@ export class AutoInitSite {
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info('初始化站点完成');
|
logger.info('初始化站点完成');
|
||||||
|
// const pkg = require('../../../package.json');
|
||||||
|
// logger.info(`当前版本为:${pkg.version}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async startOptimizeDb() {
|
async startOptimizeDb() {
|
||||||
|
|
Loading…
Reference in New Issue