moxunpw 3 anos atrás
pai
commit
21a8d0d4bc
1 arquivos alterados com 1 adições e 1 exclusões
  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);
     });
   }();