|
|
|
@ -21,9 +21,10 @@ setTimeout(() => { |
|
|
|
}, 500) |
|
|
|
|
|
|
|
const data = ref<any>(data1) |
|
|
|
const id = ref<any>(route.query.id) |
|
|
|
const id = route.path.split('/').pop() || '' |
|
|
|
onBeforeMount(async () => { |
|
|
|
const res = await getDeviceInfo(id.value) |
|
|
|
console.log(route.path) |
|
|
|
const res = await getDeviceInfo(id) |
|
|
|
console.log(res) |
|
|
|
if (res) |
|
|
|
data.value = JSON.parse(res.Page_Content) |
|
|
|
|