@@ -381,7 +381,7 @@ export default {
381381 app_tenant_mode: ' 租户模式' ,
382382 app_tenant_id: ' 租户 ID' ,
383383 type: ' 应用类型' ,
384- category: " 应用分类" ,
384+ category: ' 应用分类' ,
385385 is_active: ' 状态' ,
386386 creator: ' 创建人' ,
387387 created_humanized: ' 创建时间' ,
@@ -517,9 +517,9 @@ export default {
517517 this .editCategory .visible = true ;
518518 this .editCategory .loading = false ;
519519 await this .getCategoryList ();
520-
520+
521521 // 查找当前分类的ID
522- const currentCategory = this .editCategory .categoryList .find (item => item .name === this .baseInfo .category );
522+ const currentCategory = this .editCategory .categoryList .find (( item ) => item .name === this .baseInfo .category );
523523 this .editCategory .selectedCategory = currentCategory ? currentCategory .id : null ;
524524 },
525525 // 获取分类列表
@@ -537,10 +537,9 @@ export default {
537537 await this .$store .dispatch (' tenantOperations/updateAppCategory' , {
538538 appCode: this .appCode ,
539539 data: {
540- category: this .editCategory .selectedCategory
541- }
540+ category: this .editCategory .selectedCategory ,
541+ },
542542 });
543- this .editCategory .loading = false ;
544543 this .editCategory .visible = false ;
545544 this .$paasMessage ({
546545 theme: ' success' ,
@@ -549,13 +548,14 @@ export default {
549548 this .getAppDetails ();
550549 } catch (e) {
551550 this .catchErrorHandler (e);
551+ } finally {
552552 this .editCategory .loading = false ;
553553 }
554554 },
555555 // 确认修改分类
556556 handleConfirmCategory () {
557557 if (! this .editCategory .selectedCategory ) return ;
558-
558+
559559 this .editCategory .loading = true ;
560560 this .updateAppCategory ();
561561 },
@@ -619,7 +619,7 @@ export default {
619619 const routeName = this .baseInfo .type === ' cloud_native' ? ' cloudAppSummary' : ' appSummary' ;
620620 const route = this .$router .resolve ({
621621 name: routeName,
622- params: { id: this .baseInfo .code },
622+ params: { id: this .baseInfo .code , moduleId : ' default ' },
623623 });
624624 this .toLink (route .href );
625625 },
0 commit comments