暂态事件处理
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user