|
@@ -310,7 +310,8 @@ export function spaceJudgmentHTML(rule, value, callback) {
|
|
|
*/
|
|
|
export function urlJudge(url) {
|
|
|
// let src = '';
|
|
|
- url = '/admin/statics'+url.split('statics')[1]
|
|
|
+ // url = '/admin/statics'+url.split('statics')[1]
|
|
|
+ url = '/statics'+url.split('statics')[1]
|
|
|
// console.log('url',url);
|
|
|
let location = window.location.href
|
|
|
// console.log('location',location)
|
|
@@ -328,5 +329,7 @@ export function urlJudge(url) {
|
|
|
// }else{
|
|
|
// src = localStorage.getItem('filePreviewUrl') + '/onlinePreview?url='+encodeURIComponent(btoa(unescape(encodeURIComponent(window.location.href.split('://')[0]+'://' +judgmentNetworkReturnAddress() +'/admin/'+ url))));
|
|
|
// }
|
|
|
+ console.log('location',location);
|
|
|
+ console.log('url',url);
|
|
|
return location + url
|
|
|
}
|