From ef8d151b7794c3919bbbd8c8e9ec97a119631abb Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 27 Jun 2022 11:07:10 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index 28f9147d9..d42172d8d 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -50,10 +50,39 @@ window.jQuery = window.$ = window.jQuery || window.$ || layui.$; /*! 配置 require 参数 */ require.config({ - baseUrl: baseRoot, waitSeconds: 60, map: {'*': {css: baseRoot + 'plugs/require/css.js'}}, paths: { - 'vue': ['plugs/vue/vue.min'], 'md5': ['plugs/jquery/md5.min'], 'json': ['plugs/jquery/json.min'], 'xlsx': ['plugs/jquery/xlsx.min'], 'excel': ['plugs/jquery/excel.xlsx'], 'base64': ['plugs/jquery/base64.min'], 'upload': [tapiRoot + '/api.upload/index?'], 'notify': ['plugs/notify/notify.min'], 'angular': ['plugs/angular/angular.min'], 'cropper': ['plugs/cropper/cropper.min'], 'echarts': ['plugs/echarts/echarts.min'], 'ckeditor4': ['plugs/ckeditor4/ckeditor'], 'ckeditor5': ['plugs/ckeditor5/ckeditor'], 'websocket': ['plugs/socket/websocket'], 'pcasunzips': ['plugs/jquery/pcasunzips'], 'sortablejs': ['plugs/sortable/sortable.min'], 'vue.sortable': ['plugs/sortable/vue.draggable.min'], 'jquery.ztree': ['plugs/ztree/ztree.all.min'], 'jquery.masonry': ['plugs/jquery/masonry.min'], 'jquery.cropper': ['plugs/cropper/cropper.min'], 'jquery.autocompleter': ['plugs/jquery/autocompleter.min'], + baseUrl: baseRoot, waitSeconds: 60, + map: {'*': {css: baseRoot + 'plugs/require/css.js'}}, + paths: { + 'vue': ['plugs/vue/vue.min'], + 'md5': ['plugs/jquery/md5.min'], + 'json': ['plugs/jquery/json.min'], + 'xlsx': ['plugs/jquery/xlsx.min'], + 'excel': ['plugs/jquery/excel.xlsx'], + 'base64': ['plugs/jquery/base64.min'], + 'upload': [tapiRoot + '/api.upload/index?'], + 'notify': ['plugs/notify/notify.min'], + 'angular': ['plugs/angular/angular.min'], + 'cropper': ['plugs/cropper/cropper.min'], + 'echarts': ['plugs/echarts/echarts.min'], + 'ckeditor4': ['plugs/ckeditor4/ckeditor'], + 'ckeditor5': ['plugs/ckeditor5/ckeditor'], + 'websocket': ['plugs/socket/websocket'], + 'pcasunzips': ['plugs/jquery/pcasunzips'], + 'sortablejs': ['plugs/sortable/sortable.min'], + 'vue.sortable': ['plugs/sortable/vue.draggable.min'], + 'jquery.ztree': ['plugs/ztree/ztree.all.min'], + 'jquery.masonry': ['plugs/jquery/masonry.min'], + 'jquery.cropper': ['plugs/cropper/cropper.min'], + 'jquery.autocompleter': ['plugs/jquery/autocompleter.min'], }, shim: { - 'excel': {deps: [baseRoot + 'plugs/layui_exts/excel.js']}, 'notify': {deps: ['css!' + baseRoot + 'plugs/notify/light.css']}, 'cropper': {deps: ['css!' + baseRoot + 'plugs/cropper/cropper.min.css']}, 'websocket': {deps: [baseRoot + 'plugs/socket/swfobject.min.js']}, 'ckeditor5': {deps: ['jquery', 'upload', 'css!' + baseRoot + 'plugs/ckeditor5/ckeditor.css']}, 'vue.sortable': {deps: ['vue', 'sortablejs']}, 'jquery.ztree': {deps: ['jquery', 'css!' + baseRoot + 'plugs/ztree/zTreeStyle/zTreeStyle.css']}, 'jquery.autocompleter': {deps: ['jquery', 'css!' + baseRoot + 'plugs/jquery/autocompleter.css']}, + 'excel': {deps: [baseRoot + 'plugs/layui_exts/excel.js']}, + 'notify': {deps: ['css!' + baseRoot + 'plugs/notify/light.css']}, + 'cropper': {deps: ['css!' + baseRoot + 'plugs/cropper/cropper.min.css']}, + 'websocket': {deps: [baseRoot + 'plugs/socket/swfobject.min.js']}, + 'ckeditor5': {deps: ['jquery', 'upload', 'css!' + baseRoot + 'plugs/ckeditor5/ckeditor.css']}, + 'vue.sortable': {deps: ['vue', 'sortablejs']}, + 'jquery.ztree': {deps: ['jquery', 'css!' + baseRoot + 'plugs/ztree/zTreeStyle/zTreeStyle.css']}, + 'jquery.autocompleter': {deps: ['jquery', 'css!' + baseRoot + 'plugs/jquery/autocompleter.css']}, } });