新增三码适配
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app'
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
onLoad((options) => {
|
||||
let deviceNo;
|
||||
if (options) {
|
||||
deviceNo = options.deviceNo;
|
||||
uni.reLaunch({
|
||||
url: `/pages/device/detail?deviceNo=${deviceNo}`
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
// onMounted((options)=>{
|
||||
// let deviceNo;
|
||||
// if (options) {
|
||||
// deviceNo = options.deviceNo;
|
||||
// uni.reLaunch({
|
||||
// url: `/pages/device/detail?deviceNo=${deviceNo}`
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user