refactor(client): Use symbol

This commit is contained in:
syuilo
2021-04-10 12:54:12 +09:00
parent d3fe02fb3e
commit 45e5d89353
103 changed files with 246 additions and 142 deletions

View File

@ -64,6 +64,7 @@ import XHeader from './_common_/header.vue';
import XSide from './default.side.vue';
import * as os from '@client/os';
import { sidebarDef } from '@client/sidebar';
import * as symbols from '@client/symbols';
const DESKTOP_THRESHOLD = 1100;
@ -144,8 +145,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
if (page.INFO) {
this.pageInfo = page.INFO;
if (page[symbols.PAGE_INFO]) {
this.pageInfo = page[symbols.PAGE_INFO];
document.title = `${this.pageInfo.title} | ${instanceName}`;
}
},