refactor(client): Use symbol
This commit is contained in:
parent
d3fe02fb3e
commit
45e5d89353
103 changed files with 246 additions and 142 deletions
|
@ -98,6 +98,7 @@ import { defaultStore } from '@client/store';
|
|||
import { ColdDeviceStorage } from '@client/store';
|
||||
import * as os from '@client/os';
|
||||
import { unisonReload } from '@client/scripts/unison-reload';
|
||||
import * as symbols from '@client/symbols';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
|
@ -115,7 +116,7 @@ export default defineComponent({
|
|||
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
[symbols.PAGE_INFO]: {
|
||||
title: this.$ts.general,
|
||||
icon: faCogs
|
||||
},
|
||||
|
@ -191,7 +192,7 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
mounted() {
|
||||
this.$emit('info', this.INFO);
|
||||
this.$emit('info', this[symbols.PAGE_INFO]);
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue