|
|
@@ -66,6 +66,7 @@
|
|
|
import SimpleAddress from '@/components/plugin/simple-address'
|
|
|
import AppAreaSel from '@/components/app-area-sel'
|
|
|
const form = require('@/utils/formValidation.js')
|
|
|
+ import {mapActions} from "vuex";
|
|
|
// api
|
|
|
import { updateShop as update, addShop as add } from '@/api/shop'
|
|
|
export default {
|
|
|
@@ -117,6 +118,7 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapActions(['setUserShopAll']),
|
|
|
init() {
|
|
|
this._getDet()
|
|
|
},
|
|
|
@@ -167,11 +169,12 @@
|
|
|
this.form.id = this.option.id
|
|
|
}
|
|
|
hostFn(this.form).then(res => {
|
|
|
+ this.setUserShopAll();
|
|
|
let promptText = this.option.id ? '修改成功!' : '添加成功!'
|
|
|
this.$msg(promptText)
|
|
|
uni.removeStorageSync('modifyShopB')
|
|
|
setTimeout(() => {
|
|
|
- this.$util.pageTo('/admin/shop/list')
|
|
|
+ this.$util.pageTo({url:'/admin/shop/list', type: 2})
|
|
|
}, 1000)
|
|
|
})
|
|
|
},
|