Commit 3358e98a authored by 吴冠's avatar 吴冠

测试2

parent 90eccc44
<template> <template>
<div> <div>
<Nuxt /> <Nuxt keep-alive/>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -102,16 +102,16 @@ export default { ...@@ -102,16 +102,16 @@ export default {
size:10, size:10,
noticeType:'ENQUIRY' noticeType:'ENQUIRY'
} }
if(Cookies.get("details")){ if(Cookies.get("details",{domain:"http://60.205.251.80:8081",path:'/'})){
mes.currentPage = Cookies.get("currentPage") mes.currentPage = Cookies.get("currentPage",{domain:"http://60.205.251.80:8081",path:'/'})
} }
const res = await industryList(); const res = await industryList();
console.log(res,"----------------------") console.log(res,"----------------------")
const {data,total} = await getInquiryList(mes) const {data,total} = await getInquiryList(mes)
console.log('sssssssssssssssssssssssss') console.log('sssssssssssssssssssssssss')
/* Cookies.remove("details",domain="60.205.251.80:8081") */ Cookies.remove("details",{domain:"http://60.205.251.80:8081",path:'/'})
console.log('bbbbbbbbbbbbbbbbbbb') console.log('bbbbbbbbbbbbbbbbbbb')
/* Cookies.remove("currentPage",domain="60.205.251.80:8081") */ Cookies.remove("currentPage",{domain:"http://60.205.251.80:8081",path:'/'})
console.log('ddddddddddddddddddd') console.log('ddddddddddddddddddd')
return { return {
priceList : data, priceList : data,
...@@ -255,7 +255,7 @@ export default { ...@@ -255,7 +255,7 @@ export default {
mess.noticeType = "ENQUIRY" mess.noticeType = "ENQUIRY"
/* mess.size = this.getData.size */ /* mess.size = this.getData.size */
mess.currentPage = val mess.currentPage = val
Cookies.set("currentPage",val) Cookies.set("currentPage",val,{domain:"http://60.205.251.80:8081",path:'/'})
this.getInquiryList(mess); this.getInquiryList(mess);
/* this.getInquiryList(this.getData.size,val) */ /* this.getInquiryList(this.getData.size,val) */
}, },
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
}, },
handleChageUrl(id){ handleChageUrl(id){
console.log(this.cacheCurrentPage+'1111111111111111112222') console.log(this.cacheCurrentPage+'1111111111111111112222')
Cookies.set("details",true) Cookies.set("details",true,{domain:"http://60.205.251.80:8081",path:'/'})
return this.$router.push(`enquirydetails?id=${id}`) return this.$router.push(`enquirydetails?id=${id}`)
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment