Pārlūkot izejas kodu

feat:组件不允许分享

ananzhusen 1 gadu atpakaļ
vecāks
revīzija
5f34fa94df
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/views/components/View.vue
  2. BIN
      v.zip

+ 4 - 1
src/views/components/View.vue

@@ -1704,7 +1704,10 @@ const share = async () => {
     MessagePlugin.error('请先保存!');
     return;
   }
-
+  if(route.query.c){
+    MessagePlugin.error('组件不允许分享!');
+    return;
+  }
   const ret: any = await updateCollection('v', {
     _id: route.query.id,
     id:route.query.id,

BIN
v.zip