| | |
| | | |
| | | // 如果有页面跳转,需要用定时器延迟 |
| | | setTimeout(() => { |
| | | uni.navigateTo({ |
| | | uni.redirectTo({ |
| | | url: 'List' |
| | | }); |
| | | }, 2000); // 保持与 duration 相同的时长 |
| | |
| | | duration: 2000 |
| | | }) |
| | | // 如果有页面跳转,需要用定时器延迟 |
| | | setTimeout(() => { |
| | | uni.navigateTo({ |
| | | url: 'List' |
| | | }); |
| | | }, 2000); // 保持与 duration 相同的时长 |
| | | |
| | | setTimeout(() => {uni.navigateBack();}, 2000); // 保持与 duration 相同的时长 |
| | | } else { |
| | | uni.showModal({ |
| | | title: "提示", |
| | |
| | | this.destructionPopup = false; |
| | | this.$showMessage("保存成功"); |
| | | setTimeout(() => { |
| | | // 跳转到列表页面 |
| | | uni.navigateTo({ |
| | | url: 'List' |
| | | }); |
| | | this.init(); |
| | | }, 2000); |
| | | } |
| | | }) |
| | |
| | | this.destructionPopup = false; |
| | | this.$showMessage("清除成功"); |
| | | setTimeout(() => { |
| | | // 跳转到列表页面 |
| | | uni.navigateTo({ |
| | | url: 'List' |
| | | }); |
| | | this.init(); |
| | | }, 2000); |
| | | } |
| | | }) |
| | |
| | | networkFlag:'内网', |
| | | serverURLInt:'http://192.168.11.251:10055',//服务器体检 10.0.1.104:10054 |
| | | serverURL:'http://localhost:10055',//本地调试地址 |
| | | //serverAPI:'http://localhost:5184/api',//当前正在使用的服务器,默认为外网 localhost |
| | | serverAPI:'http://localhost:5184/api',//当前正在使用的服务器,默认为外网 localhost |
| | | //serverAPI:'http://192.168.1.22:10054/api',//当前正在使用的服务器,默认为外网 10054为正式API |
| | | //serverAPI:'http://192.168.1.104:10055/api',//当前正在使用的服务器,默认为外网 10055为测试API |
| | | serverAPI:'http://36.26.21.214:10055/api', |
| | | //serverAPI:'http://36.26.21.214:10055/api', |
| | | } |
| | | }, |
| | | mutations: { |