曾志翔 лет назад: 2
Родитель
Сommit
7583acdd16
2 измененных файлов с 2 добавлено и 2 удалено
  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: {
-      plugins: [],
+      babelrc: false,
     },
     postcss: {
       plugins: {},

+ 1 - 1
plugins/toast/toast.vue

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