更新接口

This commit is contained in:
mkm 2024-02-28 10:09:32 +08:00
parent ec3385d2ff
commit f8c7ecf906

View File

@ -72,10 +72,10 @@ export default {
methods: { methods: {
getInfo() { getInfo() {
this.fullscreenLoading = true this.fullscreenLoading = true
getStoreTypeApi('sys_merchant_type').then(res => { getStoreTypeApi('sys_supply_type').then(res => {
const info = res.data const info = res.data
this.formValidate = { this.formValidate = {
agree: info.sys_merchant_type, agree: info.sys_supply_type,
} }
this.fullscreenLoading = false this.fullscreenLoading = false
}).catch(res => { }).catch(res => {
@ -90,7 +90,7 @@ export default {
this.$message.warning("请输入协议信息!"); this.$message.warning("请输入协议信息!");
return return
}else{ }else{
updateStoreTypeApi('sys_merchant_type',this.formValidate).then(async res => { updateStoreTypeApi('sys_supply_type',this.formValidate).then(async res => {
this.fullscreenLoading = false this.fullscreenLoading = false
this.$message.success(res.message) this.$message.success(res.message)
}).catch(res => { }).catch(res => {