- DashBoard, Profile, Order Menu
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop } from 'vue-property-decorator'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
import { GlobalStore, UserStore } from '@store'
|
||||
|
||||
import { tools } from '../../store/Modules/tools'
|
||||
@@ -25,11 +25,16 @@ export default class Mypage extends MixinMetaTags {
|
||||
public rec: IMyPage = {}
|
||||
|
||||
public mounted() {
|
||||
console.log('this.$route.path', this.$route.path)
|
||||
// console.log('this.$route.path', this.$route.path)
|
||||
this.rec = GlobalStore.getters.getPage(this.$route.path)
|
||||
console.log(this.rec)
|
||||
}
|
||||
|
||||
@Watch('$route.path')
|
||||
public changepage() {
|
||||
this.rec = GlobalStore.getters.getPage(this.$route.path)
|
||||
}
|
||||
|
||||
public meta() {
|
||||
return tools.metafunc(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user