| | |
| | | import { getWebViewUrl } from "@/utils/index.js"; |
| | | import { onHide, onLoad, onShow } from "@dcloudio/uni-app"; |
| | | |
| | | // const viewUrl = ref(getWebViewUrl('/addTask')) |
| | | const sWebViewRef = ref(null); |
| | | const viewUrl = ref(""); |
| | | |
| | | function onPostMessage(data) { |
| | |
| | | uni.setStorageSync("joinParams", { |
| | | type: "add", |
| | | }); |
| | | // console.log('打印新增成功') |
| | | uni.switchTab({ |
| | | url: "/pages/inspectionTask/index", |
| | | }); |
| | | // #endif |
| | | |
| | | // uni.redirectTo({ |
| | | // url: `/pages/inspectionTask/index?addLog=1111` |
| | | // }); |
| | | } |
| | | } |
| | | |
| | | // onLoad( (options) => { |
| | | // console.log(options, '8888') |
| | | // const sns = options.device_sn |
| | | // |
| | | // }); |
| | | const isApp = ref(false); |
| | | |
| | | // #ifdef MP-WEIXIN |