mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
优化js的url助手函数,以/开头则不修改;
This commit is contained in:
@@ -78,6 +78,11 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
||||
shade: [0.02, '#000'],
|
||||
},
|
||||
url: function (url) {
|
||||
|
||||
if (url.indexOf('/') === 0) {
|
||||
return url;
|
||||
}
|
||||
|
||||
return '/' + CONFIG.ADMIN + '/' + url;
|
||||
},
|
||||
headers: function () {
|
||||
|
||||
Reference in New Issue
Block a user