Prechádzať zdrojové kódy

chore(views): 注释掉目前无用的页面代码

ccnnde 2 mesiacov pred
rodič
commit
0fbf7646ee
1 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 7 7
      src/views/components/Header.vue

+ 7 - 7
src/views/components/Header.vue

@@ -13,7 +13,7 @@
         <t-dropdown-item @click="load(true)">
           <a>{{$t('打开文件')}}</a>
         </t-dropdown-item>
-        <t-dropdown-item @click="load()">
+        <t-dropdown-item divider="true" @click="load()">
           <a>{{$t('导入文件')}}</a>
         </t-dropdown-item>
         <!-- <t-dropdown-item >
@@ -82,12 +82,12 @@
             </div>
           </a>
         </t-dropdown-item> -->
-        <t-dropdown-item>
+        <!-- <t-dropdown-item>
           <a @click="downloadPng">{{$t('下载为')}}PNG</a>
         </t-dropdown-item>
         <t-dropdown-item divider="true">
           <a @click="downloadSvg">{{$t('下载为')}}SVG</a>
-        </t-dropdown-item>
+        </t-dropdown-item> -->
         <t-dropdown-item>
           <a @click="switchTheme('light')">{{$t('明亮主题')}}</a>
         </t-dropdown-item>
@@ -1314,7 +1314,7 @@ const downloadJson = () => {
           type: 'text/plain;charset=utf-8',
         }
       ),
-      `${data.name || 'le5le.meta2d'}.json`
+      `${data.name || 'unimat.iot'}.json`
     );
   });
 };
@@ -1501,7 +1501,7 @@ const doDownloadZip = async ()=>{
   const _data: Meta2dBackData = meta2d.data();
   let _fileName =
     (_data.name && _data.name.replace(/\//g, '_').replace(/:/g, '_')) ||
-    'le5le.meta2d';
+    'unimat.iot';
   const _zip = zip.folder(`${_fileName}`);
   let list = getDownloadZipList(_data,data.zips);
   await Promise.all(
@@ -2281,7 +2281,7 @@ const saveDownload = async () => {
   let _fileName =
     (meta2d.store.data.name &&
       meta2d.store.data.name.replace(/\//g, '_').replace(/:/g, '_')) ||
-    'le5le.meta2d';
+    'unimat.iot';
   const blob = await zip.generateAsync({ type: 'blob' });
   saveAs(blob, `${_fileName}.zip`);
   MessagePlugin.closeAll();
@@ -2788,7 +2788,7 @@ ${defsList.join('\n')}
   const a = document.createElement('a');
   a.setAttribute(
     'download',
-    `${(meta2d.store.data as Meta2dBackData).name || 'le5le.meta2d'}.svg`
+    `${(meta2d.store.data as Meta2dBackData).name || 'unimat.iot'}.svg`
   );
   a.setAttribute('href', url);
   const evt = document.createEvent('MouseEvents');