浏览代码

资质认证服务选择bug修复

chenjj 3 月之前
父节点
当前提交
79b0924435
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 1 1
      pages_home/pages/certification/Category.vue
  2. 4 2
      pages_home/pages/certification/Class.vue

+ 1 - 1
pages_home/pages/certification/Category.vue

@@ -41,7 +41,7 @@ import { computed } from 'vue';
 const formData = inject('formData');
 
 // const { project } = formData;
-const project = computed(() => formData.project);
+const project = computed(() => formData.project || []);
 console.log("TCL: project=============", project)
 const props=defineProps({
     viewStatus: {

+ 4 - 2
pages_home/pages/certification/Class.vue

@@ -108,8 +108,10 @@ export default {
     onLoad(options) {
         const data = decodeURIComponent(options.data)
         console.log("TCL: options", )
-        this.activeList = data ? JSON.parse(data) : [];
-
+        if(data){
+            this.activeList = data ? JSON.parse(data) : [];
+        }
+        
     },
     methods: {
         deleteActiveList(id) {