Browse Source

fix open speed

Naibo Wang 2 years ago
parent
commit
c91dd3fa34
3 changed files with 11 additions and 11 deletions
  1. 3 3
      ElectronJS/package-lock.json
  2. 1 1
      ElectronJS/src/index.html
  3. 7 7
      ElectronJS/src/index.js

+ 3 - 3
ElectronJS/package-lock.json

@@ -1,13 +1,13 @@
 {
   "name": "easy-spider",
-  "version": "0.1.0",
+  "version": "0.3.1",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "easy-spider",
-      "version": "0.1.0",
-      "license": "CC0-1.0",
+      "version": "0.3.1",
+      "license": "GPL-3.0",
       "dependencies": {
         "electron-squirrel-startup": "^1.0.0",
         "http": "^0.0.1-security",

+ 1 - 1
ElectronJS/src/index.html

@@ -8,7 +8,7 @@
           name="viewport">
     <meta content="ie=edge" http-equiv="X-UA-Compatible">
     <script src="js/vue.global.js"></script>
-    <script src="https://unpkg.com/vue-i18n@9"></script>
+    <!-- <script src="https://unpkg.com/vue-i18n@9"></script> -->
     <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
     </link>
     <title>EasySpider: NoCode Visual Web Crawler</title>

+ 7 - 7
ElectronJS/src/index.js

@@ -4,11 +4,11 @@ const messages = {
     zh: zhLocale,
     en: enLocale,
 }
-const i18n = VueI18n.createI18n({
-  locale: 'zh',
-  fallbackLocale: 'en',
-  messages
-})
+// const i18n = VueI18n.createI18n({
+//   locale: 'zh',
+//   fallbackLocale: 'en',
+//   messages
+// })
 
 
 function getUrlParam(name) {
@@ -70,5 +70,5 @@ var app = Vue.createApp({
             window.electronAPI.startInvoke(lang);
         }
     }
-}).use(i18n).mount('#app')
-console.log(i18n.global.t('test'))
+}).mount('#app');
+// console.log(i18n.global.t('test'))