gemercheung 2 vuotta sitten
vanhempi
commit
4b31ac03fb

+ 5 - 2
packages/qjkankan-view/babel.config.js

@@ -1,17 +1,20 @@
 
 module.exports = {
+
   presets: [
     '@vue/cli-plugin-babel/preset',
     [
       '@babel/preset-env',
       {
+        // useBuiltIns: 'entry',
         useBuiltIns: 'usage',
         corejs: '3.8.3', // 指定 corejs 的版本,如果package.json没有core-js,还需要另外安装
-        targets: ['and_uc 9']
+        // corejs: 3, // 指定 corejs 的版本,如果package.json没有core-js,还需要另外安装
+        targets: ['chrome 69', 'and_uc 9']
       }
     ]
   ],
-  "plugins": [ // 如未用到@babel/plugin-transform-runtime可不配置
+  plugins: [ // 如未用到@babel/plugin-transform-runtime可不配置
     [
       "@babel/plugin-transform-runtime",
       {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 20083
packages/qjkankan-view/package-lock.json


+ 3 - 1
packages/qjkankan-view/package.json

@@ -13,6 +13,7 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
+    "@babel/polyfill": "^7.12.1",
     "@floating-ui/dom": "^1.0.4",
     "axios": "^0.27.2",
     "clipboard": "^2.0.11",
@@ -44,6 +45,7 @@
     "eslint-plugin-vue": "^8.0.3",
     "prettier": "^2.4.1",
     "sass": "^1.26.5",
-    "sass-loader": "^8.0.2"
+    "sass-loader": "^8.0.2",
+    "webpackbar": "^5.0.2"
   }
 }

+ 3 - 1
packages/qjkankan-view/public/showMobile.html

@@ -44,6 +44,8 @@
     <script src="<%= VUE_APP_STATIC_DIR %>/lib/swiper/swiper-bundle.min.js"></script>
     <!-- <script src="<%= VUE_APP_STATIC_DIR %>/lib/jssor/jssor.slider-28.1.0.min.js"></script> -->
     <script src="https://4dkk.4dage.com/v4-test/www/viewer/static/lib/vconsole.js"></script>
-
+    <script>
+         var vConsole = new window.VConsole()
+  </script>
   </body>
 </html>

+ 2 - 1
packages/qjkankan-view/src/pages/showMobile.js

@@ -1,5 +1,6 @@
 import "@/assets/scss/theme.scss";
-
+// import 'core-js/stable';
+// import 'regenerator-runtime/runtime';
 import i18n, { getLocale, setI18nLanguage, loadLocaleMessages } from "../i18n";
 import Components from "@/global_components";
 import ShowMobile from "./showMobile.vue";

+ 0 - 5
packages/qjkankan-view/src/pages/showMobile.vue

@@ -78,11 +78,6 @@ onMounted(async () => {
     );
     return;
   }
-  //移动端开console
-  const Vconsle = browser.getURLParam("vlog");
-  if (Number(Vconsle) == 1) {
-    window.vConsole = new window.VConsole();
-  }
 
   let res = await checkWork();
   if (!res.data) {

+ 0 - 3
packages/qjkankan-view/src/sdk/QJKanKan/modules/hotspot.js

@@ -5,9 +5,6 @@
  *  */
 // import config from '../config'
 
-import 'core-js/modules/es.array.at'
-import 'core-js/modules/web.structured-clone'
-
 console.log('支持-structuredClone', 'structuredClone' in globalThis)
 
 const initState = {

+ 2 - 0
packages/qjkankan-view/vue.config.js

@@ -39,3 +39,5 @@ module.exports = defineConfig({
     },
   },
 });
+
+