File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ export default {
142142 localStorage . removeItem ( 'appJointProjectId' )
143143 url = info . homepageUrl
144144 }
145- window . console . log ( url , 'url' , info )
146145 // 如果没有提示用户功能暂未开发
147146 if ( Object . keys ( info ) . length === 0 ) {
148147 this . $Message . warning ( this . $t ( 'message.constants.warning.comingSoon' ) ) ;
Original file line number Diff line number Diff line change 4343 <span >{{adminApps.title}}</span >
4444 </h3 >
4545 <div class =" app-list" >
46- <div v-for =" item in adminApps.appInstances" :key =" item.title" class =" app-item-wrap" @click =" navTo(item, item.url )" >
46+ <div v-for =" item in adminApps.appInstances" :key =" item.title" class =" app-item-wrap" @click =" navTo(item, item.accessButtonUrl )" >
4747 <i class =" app-icon" :class =" iconSplit(item.icon)[0]" :style =" `color: ${iconSplit(item.icon)[1]}`" ></i >
48- <span class =" label" >{{item.title }}</span >
48+ <span class =" label" >{{item.accessButton }}</span >
4949 </div >
5050 </div >
5151
@@ -194,8 +194,6 @@ export default {
194194 if (icon){
195195 return icon .split (' |' )
196196 }
197- // icon="fi-scriptis|rgb(102, 102, 255)"
198- // return icon.split('|')
199197 return [' ' ,' ' ]
200198 },
201199 init (){
@@ -273,10 +271,14 @@ export default {
273271 this .gotoCommonIframe (item .name , {workspaceId: this .workspaceId })
274272 },
275273 navTo (item , path ){
276- if (path .startsWith (' http' )){
277- window .open (path);
274+ if (path){
275+ if (path .startsWith (' http' )){
276+ window .open (path);
277+ }else {
278+ this .$router .push ({path: path, query: Object .assign ({}, this .$route .query )});
279+ }
278280 }else {
279- this . $route . push ( path);
281+ console . warn ( ' path error ' , path);
280282 }
281283 }
282284 },
You can’t perform that action at this time.
0 commit comments