暂态事件处理

This commit is contained in:
仲么了
2023-09-06 18:13:08 +08:00
parent 1d2974aca7
commit f8d8229cc1
10 changed files with 130 additions and 108 deletions

View File

@@ -72,7 +72,7 @@ export default {
this.formData.id = this.engineering.id
uni.setNavigationBarTitle({title: '工程编辑'})
}
if(options.from === 'index'){
if (options.from === 'index') {
this.$util.toast('请先创建一个工程')
}
// console.log(area);
@@ -129,7 +129,7 @@ export default {
if (this.options.from === 'index') {
uni.setStorageSync('engineering', res.data)
uni.redirectTo({
url: '/pages/device/new',
url: '/pages/device/new?type=' + this.options.type,
})
return
} else {