mirror of
https://github.com/certd/certd.git
synced 2026-04-15 05:00:52 +08:00
Merge branch 'refs/heads/v2' into v2-dev
This commit is contained in:
@@ -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";
|
||||
@@ -146,6 +146,10 @@ const sysPublic = computed(() => {
|
||||
const siteInfo = computed(() => {
|
||||
return settingStore.siteInfo;
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
await settingStore.checkUrlBound();
|
||||
});
|
||||
</script>
|
||||
<style lang="less">
|
||||
@import "../style/theme/index.less";
|
||||
|
||||
@@ -135,7 +135,6 @@ export const useSettingStore = defineStore({
|
||||
_.merge(this.plusInfo, allSettings.plusInfo || {});
|
||||
//@ts-ignore
|
||||
this.initSiteInfo(allSettings.siteInfo || {});
|
||||
await this.checkUrlBound();
|
||||
},
|
||||
initSiteInfo(siteInfo: SiteInfo) {
|
||||
//@ts-ignore
|
||||
|
||||
@@ -63,6 +63,8 @@ export class AutoInitSite {
|
||||
}
|
||||
|
||||
logger.info('初始化站点完成');
|
||||
// const pkg = require('../../../package.json');
|
||||
// logger.info(`当前版本为:${pkg.version}`);
|
||||
}
|
||||
|
||||
async startOptimizeDb() {
|
||||
|
||||
Reference in New Issue
Block a user