- DashBoard, Profile, Order Menu

This commit is contained in:
Paolo Arena
2019-12-31 00:45:06 +01:00
parent b70f0df084
commit 354d1c8b36
38 changed files with 846 additions and 193 deletions

View File

@@ -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)
}