From 0fa418b992a74c553fc754bef6ed2d01e21071b9 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Sun, 6 Aug 2023 21:10:12 +0800 Subject: [PATCH] token --- src/views/productsMsg/components/productInfo.vue | 6 +----- src/views/productsMsg/index.vue | 5 ++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/productsMsg/components/productInfo.vue b/src/views/productsMsg/components/productInfo.vue index 2d3c840..422e6b1 100644 --- a/src/views/productsMsg/components/productInfo.vue +++ b/src/views/productsMsg/components/productInfo.vue @@ -12,15 +12,11 @@ export default { iframViewStyle:{ height:"", }, - url:'' + url:`http://localhost:80/productinformation?type=${this.$route.query.type}&flag=${this.$route.query.flag}&data=${this.$route.query.data}&token=${localStorage.getItem('MSSM-LIAONING__TOKEN')}` } }, - created(){ - this.url = `http://localhost:80/productinformation?type=${this.$route.query.type}&flag=${this.$route.query.flag || ''}&data=${this.$route.query.data || ''}` - }, methods:{ }, - mounted() { this.$nextTick(()=>{ let dom = document.getElementsByClassName('ifram-view'); diff --git a/src/views/productsMsg/index.vue b/src/views/productsMsg/index.vue index 7e6cc36..4379ec4 100644 --- a/src/views/productsMsg/index.vue +++ b/src/views/productsMsg/index.vue @@ -154,7 +154,10 @@ export default { methods: { //去内嵌页面 toDetail(e) { - console.log(e); + this.$router.push({ + path: `/cosmeticsDetail`, + query: { type: 2, data:e.yppzwh }, + }); }, //搜索 searchList() {