mooho-base-admin-plus 0.1.57 → 0.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.1.57",
4
+ "version": "0.1.59",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.3.97",
7
7
  "license": "MIT",
@@ -124,16 +124,16 @@
124
124
  };
125
125
  },
126
126
  computed: {},
127
- async created() {
127
+ async mounted() {
128
128
  this.init(this.$route.meta.data.id);
129
129
  },
130
- watch: {
131
- $route() {
132
- if (this.$route.meta.data.id) {
133
- this.init(this.$route.meta.data.id);
134
- }
135
- }
136
- },
130
+ // watch: {
131
+ // $route() {
132
+ // if (this.$route.meta.data.id) {
133
+ // //this.init(this.$route.meta.data.id);
134
+ // }
135
+ // }
136
+ // },
137
137
  methods: {
138
138
  ...mapActions('admin/viewPage', { loadPage: 'load' }),
139
139
  // 初始化
@@ -4,7 +4,7 @@
4
4
  <PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
5
5
  </div>
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
- <view-table ref="table" v-if="page" @on-load-data="onLoadData">
7
+ <view-table ref="table" @on-load-data="onLoadData">
8
8
  <template #middle>
9
9
  <div>
10
10
  <view-chart ref="chart"></view-chart>
@@ -30,16 +30,16 @@
30
30
  };
31
31
  },
32
32
  computed: {},
33
- created() {
33
+ mounted() {
34
34
  this.init(this.$route.meta.data.id);
35
35
  },
36
- watch: {
37
- $route() {
38
- if (this.$route.meta.data.id) {
39
- this.init(this.$route.meta.data.id);
40
- }
41
- }
42
- },
36
+ // watch: {
37
+ // $route() {
38
+ // if (this.$route.meta.data.id) {
39
+ // //this.init(this.$route.meta.data.id);
40
+ // }
41
+ // }
42
+ // },
43
43
  methods: {
44
44
  ...mapActions('admin/viewPage', { loadPage: 'load' }),
45
45
  ...mapActions('admin/dataView', { loadView: 'load' }),
@@ -73,13 +73,13 @@
73
73
  mounted() {
74
74
  this.init(this.$route.meta.data.id);
75
75
  },
76
- watch: {
77
- $route() {
78
- if (this.$route.meta.data.id) {
79
- this.init(this.$route.meta.data.id);
80
- }
81
- }
82
- },
76
+ // watch: {
77
+ // $route() {
78
+ // if (this.$route.meta.data.id) {
79
+ // //this.init(this.$route.meta.data.id);
80
+ // }
81
+ // }
82
+ // },
83
83
  methods: {
84
84
  ...mapActions('admin/viewPage', { loadPage: 'load' }),
85
85
  // 初始化