refactor(client): Use symbol
This commit is contained in:
@@ -49,6 +49,7 @@ import MkPagination from '@client/components/ui/pagination.vue';
|
||||
import MkButton from '@client/components/ui/button.vue';
|
||||
import XHeader from './header.vue';
|
||||
import { ColdDeviceStorage } from '@client/store';
|
||||
import * as symbols from '@client/symbols';
|
||||
|
||||
const DESKTOP_THRESHOLD = 1100;
|
||||
|
||||
@@ -110,8 +111,8 @@ export default defineComponent({
|
||||
|
||||
changePage(page) {
|
||||
if (page == null) return;
|
||||
if (page.INFO) {
|
||||
this.pageInfo = page.INFO;
|
||||
if (page[symbols.PAGE_INFO]) {
|
||||
this.pageInfo = page[symbols.PAGE_INFO];
|
||||
}
|
||||
},
|
||||
|
||||
|
@@ -61,6 +61,7 @@ import MkButton from '@client/components/ui/button.vue';
|
||||
import XHeader from './header.vue';
|
||||
import XKanban from './kanban.vue';
|
||||
import { ColdDeviceStorage } from '@client/store';
|
||||
import * as symbols from '@client/symbols';
|
||||
|
||||
const DESKTOP_THRESHOLD = 1100;
|
||||
|
||||
@@ -124,8 +125,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];
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user