更新代码
This commit is contained in:
@@ -51,6 +51,9 @@
|
||||
} from 'vue';
|
||||
import color from '@/commons/color.js';
|
||||
import go from '@/commons/utils/go.js';
|
||||
import {
|
||||
onLoad,
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
tbShopPurveyorput
|
||||
} from '@/http/yskApi/requestAll.js';
|
||||
@@ -62,17 +65,15 @@
|
||||
type: String
|
||||
}
|
||||
})
|
||||
onMounted(() => {
|
||||
datas.form = JSON.parse(props.item)
|
||||
onLoad((d)=>{
|
||||
datas.form = JSON.parse(d.item)
|
||||
})
|
||||
|
||||
function sumbit() {
|
||||
tbShopPurveyorput({
|
||||
shopId: uni.getStorageSync("shopId"),
|
||||
|
||||
...datas.form
|
||||
}).then(res => {
|
||||
// go.to('PAGES_SUPPLIER')
|
||||
go.back()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user