|
@@ -9,8 +9,8 @@
|
|
|
<script>
|
|
|
import detailFrame from '@frame/layout/admin/detail-frame';
|
|
|
import dataForm from '@frame/components/form';
|
|
|
-import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: mapClass } = createNamespacedHelpers('classes');
|
|
|
+import { createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions } = createNamespacedHelpers('classes');
|
|
|
export default {
|
|
|
metaInfo: { title: '班级信息' },
|
|
|
name: 'detail',
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapClass(['fetch', 'create', 'update']),
|
|
|
+ ...mapActions(['fetch', 'create', 'update']),
|
|
|
async search() {
|
|
|
const res = await this.fetch(this.id);
|
|
|
console.log(res);
|