diff --git a/src/views/device/DashBoard/index.vue b/src/views/device/DashBoard/index.vue
index 122e5f4e..a4001a96 100644
--- a/src/views/device/DashBoard/index.vue
+++ b/src/views/device/DashBoard/index.vue
@@ -228,7 +228,6 @@ const getOnline = () => {
onlineYdata.reverse();
setOnlineChartOpition(x, onlineYdata);
onlineFooter.value[0].value = y?.[1];
- console.log(res.result);
}
});
};
diff --git a/src/views/device/Product/Detail/BasicInfo/indev.vue b/src/views/device/Product/Detail/BasicInfo/indev.vue
index ed0a99af..5d0fbd22 100644
--- a/src/views/device/Product/Detail/BasicInfo/indev.vue
+++ b/src/views/device/Product/Detail/BasicInfo/indev.vue
@@ -41,19 +41,21 @@
-
+
diff --git a/src/views/device/Product/Detail/index.vue b/src/views/device/Product/Detail/index.vue
index 5101ef4f..ac561b62 100644
--- a/src/views/device/Product/Detail/index.vue
+++ b/src/views/device/Product/Detail/index.vue
@@ -151,7 +151,6 @@ watch(
() => route.params.id,
(newId) => {
if (newId) {
- console.log(newId);
productStore.tabActiveKey = 'Info';
productStore.refresh(newId as string);
}
@@ -230,7 +229,7 @@ const getProtocol = async () => {
* 详情页跳转到设备页
*/
const jumpDevice = () => {
- console.log(productStore.current?.id);
+ // console.log(productStore.current?.id);
const searchParams = {
column: 'productId',
termType: 'eq',
diff --git a/src/views/device/Product/DialogTips/index.vue b/src/views/device/Product/DialogTips/index.vue
index 72928eb9..afa3fb44 100644
--- a/src/views/device/Product/DialogTips/index.vue
+++ b/src/views/device/Product/DialogTips/index.vue
@@ -22,8 +22,8 @@
产品创建成功
-
产品ID: {{ idValue.value }}
-
查看详情
+
产品ID: {{ idValue }}
+
查看详情
接下来推荐操作:
1、配置产品接入方式
@@ -49,10 +49,12 @@
import { getImage } from '@/utils/comm.ts';
import { useProductStore } from '@/store/product';
import { CheckCircleOutlined } from '@ant-design/icons-vue';
+import { useMenuStore } from '@/store/menu';
const visible = ref(false);
const productStore = useProductStore();
const router = useRouter();
const idValue = ref({});
+const menuStore = useMenuStore();
/**
* 弹窗关闭
*/
@@ -70,17 +72,12 @@ const show = (id: string) => {
* 查看详情
*/
const showDetail = () => {
- jump(idValue.value);
-};
-/**
- * 跳转页面
- */
-const jump = (id: string) => {
- router.push('/iot/device/product/detail/' + id);
+ menuStore.jumpPage('device/Product/Detail',{id:idValue.value})
};
defineExpose({
show: show,
});
+