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

@@ -44,6 +44,7 @@ import { debug } from '@client/config';
import { defaultStore } from '@client/store';
import { signout } from '@client/account';
import { unisonReload } from '@client/scripts/unison-reload';
import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -59,7 +60,7 @@ export default defineComponent({
data() {
return {
INFO: {
[symbols.PAGE_INFO]: {
title: this.$ts.other,
icon: faEllipsisH
},
@@ -73,7 +74,7 @@ export default defineComponent({
},
mounted() {
this.$emit('info', this.INFO);
this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {