@@ -190,24 +190,24 @@ export default {
190190 methods: {
191191 init (){
192192
193- api .fetch (` /mock/ dss/workspaces/${ this .workspaceId } ` , ' get' ).then (data => {
193+ api .fetch (` /dss/workspaces/${ this .workspaceId } ` , ' get' ).then (data => {
194194 this .workspaceData = data;
195195 })
196196
197- api .fetch (` /mock/ dss/workspaces/${ this .workspaceId } /favorites` , ' get' ).then (data => {
197+ api .fetch (` /dss/workspaces/${ this .workspaceId } /favorites` , ' get' ).then (data => {
198198 this .favoriteApps = data;
199199 })
200200
201- api .fetch (` /mock/ dss/workspaces/${ this .workspaceId } /managements` , ' get' ).then (data => {
201+ api .fetch (` /dss/workspaces/${ this .workspaceId } /managements` , ' get' ).then (data => {
202202 this .adminApps = data .managements ? data .managements [0 ]: [];
203203 })
204204
205- api .fetch (` /mock/ dss/workspaces/${ this .workspaceId } /applications` , ' get' ).then (data => {
205+ api .fetch (` /dss/workspaces/${ this .workspaceId } /applications` , ' get' ).then (data => {
206206 this .applications = data .applications ;
207207 })
208208 },
209209 deleteFavoriteApp (favouritesId , index ){
210- api .fetch (` /mock/ dss/workspaces/${ this .workspaceId } /favorites` , ' delete' ).then (data => {
210+ api .fetch (` /dss/workspaces/${ this .workspaceId } /favorites` , ' delete' ).then (data => {
211211 this .favoriteApps .splice (index, 1 );
212212 })
213213 },
@@ -217,8 +217,7 @@ export default {
217217 if (valid) {
218218 // this.addAppLoading = true;
219219 this .show = false ;
220- api .fetch (` /mock/dss/workspaces/${ this .workspaceId } /favorites` , {applicationId: this .formDynamic .selectApp },' post' ).then (data => {
221- console .log (' 添加成功' )
220+ api .fetch (` /dss/workspaces/${ this .workspaceId } /favorites` , {applicationId: this .formDynamic .selectApp },' post' ).then (data => {
222221 const app = this .findAppByApplicationId (this .formDynamic .selectApp )
223222 this .favoriteApps .push ({
224223 ... app,
@@ -254,7 +253,7 @@ export default {
254253 }
255254 return false ;
256255 })
257- this .searchResult = [{title: ' 搜索结果 ' , appInstances: [... this .searchResult ]}];
256+ this .searchResult = [{title: ' ' , appInstances: [... this .searchResult ]}];
258257 this .search = true ;
259258 }else {
260259 this .search = false ;
@@ -277,7 +276,6 @@ export default {
277276 return this .applications .map (item => ({title: item .title , id: item .id }))
278277 },
279278 apps : function (){
280- console .log (' this.formDynamic.selectType' , this .formDynamic .selectType );
281279 if (this .formDynamic .selectType ){
282280 const arr = this .applications .filter (item => item .id == this .formDynamic .selectType );
283281 return arr[0 ].appInstances ;
@@ -286,7 +284,6 @@ export default {
286284 },
287285 tabsApplication : function (){
288286 if (this .search ){
289- console .log (' dsadad' , this .searchResult , this .applications )
290287 return this .searchResult ;
291288 }
292289 return this .applications ;
0 commit comments