|
@@ -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 + '../../../www.layui.com/doc/'+ value);
|
|
|
+ location.href = /^\//.test(value) ? value : (layui.cache.dir + '/doc/'+ value);
|
|
|
});
|
|
|
}();
|
|
|
|
|
@@ -481,7 +481,7 @@ layui.define(['code', 'element', 'table', 'util', 'carousel', 'laytpl'], functio
|
|
|
|
|
|
layer.confirm([
|
|
|
'<div class="layui-text" style="padding: 10px 0;">'
|
|
|
- ,'请先阅读《<a href="/www.layui.com/about/disclaimer.html" target="_blank">layui 开源界面框架免责声明</a>》'
|
|
|
+ ,'请先阅读《<a href="/about/disclaimer.html" target="_blank">layui 开源界面框架免责声明</a>》'
|
|
|
,',再进行下载</div>'
|
|
|
].join(''), {
|
|
|
title: '下载提示'
|
|
@@ -661,7 +661,7 @@ layui.define(['code', 'element', 'table', 'util', 'carousel', 'laytpl'], functio
|
|
|
DemoCode.val()
|
|
|
,'<body>'
|
|
|
,global.preview
|
|
|
- ,'\n<script src="//res.layui.com/layui/dist/layui.js" charset="utf-8"></script>'
|
|
|
+ ,'\n<script src="/public/layui/dist/layui.js" charset="utf-8"></script>'
|
|
|
,'\n<!-- 注意:如果你直接复制所有代码到本地,上述 JS 路径需要改成你本地的 -->'
|
|
|
,$('#LAY_democodejs').html()
|
|
|
,'\n</body>\n</html>'
|