|
@@ -309,6 +309,9 @@ export function spaceJudgmentHTML(rule, value, callback) {
|
|
|
* 预览地址判断
|
|
|
*/
|
|
|
export function urlJudge(url) {
|
|
|
+ let src = window.location.href.split('://')[0]+'://' + judgmentNetworkReturnAddress()+'/statics'+ url.split('statics')[1]
|
|
|
+ return localStorage.getItem('filePreviewUrl')+'/onlinePreview?url='+encodeURIComponent(btoa(unescape(encodeURIComponent(src))));
|
|
|
+ /*
|
|
|
// let src = '';
|
|
|
// url = '/admin/statics'+url.split('statics')[1]
|
|
|
url = '/statics'+url.split('statics')[1]
|
|
@@ -332,6 +335,7 @@ export function urlJudge(url) {
|
|
|
console.log('location',location);
|
|
|
console.log('url',url);
|
|
|
return location + url
|
|
|
+ */
|
|
|
}
|
|
|
|
|
|
/**
|