moxunpw 3 سال پیش
والد
کامیت
21a8d0d4bc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      public/static/lay/modules/layui/global.js

+ 1 - 1
public/static/lay/modules/layui/global.js

@@ -156,7 +156,7 @@ layui.define(['code', 'element', 'table', 'util', 'carousel', 'laytpl'], functio
     //搜索组件
     form.on('select(component)', function(data){
       var value = data.value;
-      location.href = /^\//.test(value) ? value : (layui.cache.dir + '/doc/'+ value);
+      location.href = /^\//.test(value) ? value : ('/doc/'+ value);
     });
   }();