Browse Source

fix:vue的引入

super-yimizi 1 month ago
parent
commit
802a98a6d7
1 changed files with 12 additions and 0 deletions
  1. 12 0
      public/assets/js/addons.js

+ 12 - 0
public/assets/js/addons.js

@@ -449,6 +449,18 @@ require.config({
         },
         },
     }
     }
 });
 });
+require.config({
+    paths: {
+        'vue': '../addons/shop/js/vue.min',
+        'jquery-colorpicker': '../addons/shop/js/jquery.colorpicker.min',
+    },
+    shim: {
+        'jquery-colorpicker': {
+            deps: ['jquery'],
+            exports: '$.fn.extend'
+        }
+    }
+});
 if ($("table.table").size() > 0) {
 if ($("table.table").size() > 0) {
     require(['previewfile', 'table'], function (Previewfile, Table) {
     require(['previewfile', 'table'], function (Previewfile, Table) {