@@ -9,13 +9,16 @@
export default {
name: 'App',
- created() {
+ created () {
+ console.log(
+ '我是-----------aps----应用------------------------------------'
+ );
// 恢复主题
this.$store.dispatch('theme/recoverTheme');
},
methods: {
/* 路由切换更新浏览器标题 */
- setDocumentTitle() {
+ setDocumentTitle () {
updateDocumentTitle(
this.$route,
(key) => this.$t(key),
@@ -24,10 +27,10 @@
}
watch: {
- '$i18n.locale'() {
+ '$i18n.locale' () {
this.setDocumentTitle();
- $route() {
+ $route () {
@@ -69,7 +69,6 @@ export async function mount (props) {
render(props);
-
export async function unmount () {
instance.$destroy();
instance.$el.innerHTML = '';