Browse Source

fix:解决系统不支持url传参

pull/52/head
肖晋飞 2 months ago
parent
commit
c184e89de0
  1. 5
      src/views/dashboard/demo/index.vue

5
src/views/dashboard/demo/index.vue

@ -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)

Loading…
Cancel
Save