Browse Source

Merge branch 'dev-5.3.1' of Software/android-cloud-H5 into test

zengzhixiang 3 years ago
parent
commit
921cd26f62
2 changed files with 2 additions and 2 deletions
  1. 1 1
      nuxt.config.js
  2. 1 1
      plugins/toast/toast.vue

+ 1 - 1
nuxt.config.js

@@ -246,7 +246,7 @@ export default {
       // }),
       // }),
     ],
     ],
     babel: {
     babel: {
-      plugins: [],
+      babelrc: false,
     },
     },
     postcss: {
     postcss: {
       plugins: {},
       plugins: {},

+ 1 - 1
plugins/toast/toast.vue

@@ -35,7 +35,7 @@ export default {
     attrs() {
     attrs() {
       return Object.entries(this.$options.propsData).reduce(
       return Object.entries(this.$options.propsData).reduce(
         (o, [key, value]) => {
         (o, [key, value]) => {
-          !Object.hasOwn(this.$props, key) && (o[key] = value);
+          !Object.prototype.hasOwnProperty.call(this.$props, key) && (o[key] = value);
           return o;
           return o;
         },
         },
         {},
         {},