소스 검색

修复mixin中第三方资源平台不可编辑的判断bug

DESKTOP-SVI9JE1\muzen 2 년 전
부모
커밋
82b4e7949d
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/mixin/index.js

+ 3 - 2
src/mixin/index.js

@@ -292,8 +292,9 @@ const platformMixin = {
 
     // 第三方资源平台不可编辑
     disabledPlatformId(e) {
-      if (e) {
-        return this.platformOptions.find(i => i.value === e).joinType.includes('1')
+      let value = this.platformOptions.find(i => i.value == e)
+      if (value) {
+        return value.joinType.includes('1') ? true : false
       }
     },