Commit 6dd6ced1 authored by salitedfish's avatar salitedfish

fix:修改实名认证缓存问题

parent 07ac19eb
...@@ -51,6 +51,10 @@ export default Vue.extend({ ...@@ -51,6 +51,10 @@ export default Vue.extend({
localStorage.setItem('isCertificate','true') localStorage.setItem('isCertificate','true')
localStorage.setItem('authInfo',JSON.stringify((user as any).authPerson)) localStorage.setItem('authInfo',JSON.stringify((user as any).authPerson))
} }
if(!(user as any).authStatus) {
localStorage.setItem('isCertificate','false')
localStorage.setItem('authInfo','')
}
}else if(typeof ret == 'string'){ }else if(typeof ret == 'string'){
this.$toast(ret) this.$toast(ret)
} }
......
...@@ -57,8 +57,7 @@ ...@@ -57,8 +57,7 @@
<app-cell text='收藏' boxType='border' labelIcon='icon-heart' icon='icon-xiayibu' @click.native='cellClick("Collection")'></app-cell> <app-cell text='收藏' boxType='border' labelIcon='icon-heart' icon='icon-xiayibu' @click.native='cellClick("Collection")'></app-cell>
<app-cell text='实名认证' boxType='border' labelIcon='icon-anquanzhongxin89' icon='icon-xiayibu' @click.native='$router.push({name:"Safe"})'></app-cell> <app-cell text='实名认证' boxType='border' labelIcon='icon-anquanzhongxin89' icon='icon-xiayibu' @click.native='$router.push({name:"Safe"})'></app-cell>
<app-cell text='联系我们' boxType='border' labelIcon='icon-lianxiwomen' icon='icon-xiayibu' @click.native='$router.push({name:"Contact"})'></app-cell> <app-cell text='联系我们' boxType='border' labelIcon='icon-lianxiwomen' icon='icon-xiayibu' @click.native='$router.push({name:"Contact"})'></app-cell>
<app-cell text='app下载' boxType='border' labelIcon='icon-lianxiwomen' icon='icon-xiayibu' @click.native='$router.push({name:"Download"})'></app-cell> <!-- <app-cell text='app下载' boxType='border' labelIcon='icon-lianxiwomen' icon='icon-xiayibu' @click.native='$router.push({name:"Download"})'></app-cell> -->
<!-- <app-cell text='设置' boxType='border' labelIcon='icon-setting' icon='icon-xiayibu' @click.native='$router.push({name:"Deving"})'></app-cell> -->
<div class='h-16'></div> <div class='h-16'></div>
</div> </div>
</Layout-Main> </Layout-Main>
...@@ -75,11 +74,11 @@ import bossyingyetingchushi from "../../assets/img/img-BOSS-yingyeting-chushi.pn ...@@ -75,11 +74,11 @@ import bossyingyetingchushi from "../../assets/img/img-BOSS-yingyeting-chushi.pn
Vue.use(Badge) Vue.use(Badge)
const apps=[ const apps=[
{ // {
text:'版权申请', // text:'版权申请',
icon: anquanzhongxin89, // icon: anquanzhongxin89,
path: '/Copyright/List' // path: '/Copyright/List'
}, // },
{ {
text:'存证查询', text:'存证查询',
icon: chakan, icon: chakan,
......
...@@ -136,7 +136,7 @@ export default Vue.extend({ ...@@ -136,7 +136,7 @@ export default Vue.extend({
proofName: res.opusName, proofName: res.opusName,
proofFeature: res.opusProperty, proofFeature: res.opusProperty,
proofType: res.opusCategory, proofType: res.opusCategory,
evidenceUser: '上海艺儒投资文化有限公司', evidenceUser: '上海艺儒文化投资有限公司',
evidenceTime: res.evidenceDate, evidenceTime: res.evidenceDate,
} }
this.showCprCer = true this.showCprCer = true
......
...@@ -278,7 +278,7 @@ export default Vue.extend({ ...@@ -278,7 +278,7 @@ export default Vue.extend({
a: "", a: "",
createNFT: { createNFT: {
value_name: "", value_name: "",
value_publisher: JSON.parse(localStorage.getItem('KEY_USER') as string).authPerson.name, value_publisher: JSON.parse(localStorage.getItem('authInfo') as string)? JSON.parse(localStorage.getItem('authInfo') as string).name : '',
value_picker: [], value_picker: [],
value_des: "", value_des: "",
archives: 0, archives: 0,
......
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