Commit d5d444a9 authored by danfuman's avatar danfuman

修改

parent 8cce306e
...@@ -62,6 +62,19 @@ export const constantRoutes = [ ...@@ -62,6 +62,19 @@ export const constantRoutes = [
component: () => import('@/views/error/401'), component: () => import('@/views/error/401'),
hidden: true hidden: true
}, },
{
path: '',
component: Layout,
redirect: 'index',
children: [
{
path: 'index',
component: () => import('@/views/index'),
name: 'Index',
meta: { title: '首页', icon: 'index', noCache: true }
}
]
},
{ {
path: '', path: '',
component: Layout, component: Layout,
......
...@@ -83,7 +83,8 @@ class IframeTools { ...@@ -83,7 +83,8 @@ class IframeTools {
initTime: new Date().valueOf(), initTime: new Date().valueOf(),
ak: accessToken, ak: accessToken,
uid: accessToken, uid: accessToken,
origin: this.origin origin: this.origin,
hide:false,
}; };
url = `${url}${paramsToQuery(query) ? "?" + paramsToQuery(query) : ""}`; url = `${url}${paramsToQuery(query) ? "?" + paramsToQuery(query) : ""}`;
this.queryParams.url = url; this.queryParams.url = url;
...@@ -178,4 +179,4 @@ class IframeTools { ...@@ -178,4 +179,4 @@ class IframeTools {
} }
export default IframeTools; export default IframeTools;
\ No newline at end of file
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
if (res.code == 200) { if (res.code == 200) {
this.timelongs = res.data.expire; this.timelongs = res.data.expire;
this.ak = res.data.accessToken; this.ak = res.data.accessToken;
this.src = `${this.domain}/search/policyInquiry?ak=${this.ak}&initTime=${new Date().getTime()}&uid=${this.ak}&origin=${window.location.origin}`; this.src = `${this.domain}/search/policyInquiryNew?ak=${this.ak}&initTime=${new Date().getTime()}&uid=${this.ak}&origin=${window.location.origin}`;
this.refreshtoken(); this.refreshtoken();
} else { } else {
clearTimeout(this.tokentimer); clearTimeout(this.tokentimer);
......
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