修改diy预览显示处理
parent
cd74477007
commit
cee3bc1640
|
|
@ -44,16 +44,16 @@ watch(
|
|||
(newVal) => {
|
||||
key.value = new Date().getTime();
|
||||
if (newVal) {
|
||||
let uid_val = '';
|
||||
if (get_cookie('uid_name')) {
|
||||
uid_val = get_cookie('uid_name');
|
||||
let uuid_val = '';
|
||||
if (get_cookie('uuid_name')) {
|
||||
uuid_val = get_cookie('uuid_name');
|
||||
} else {
|
||||
uid_val = get_math();
|
||||
set_cookie('uid_name', uid_val);
|
||||
uuid_val = get_math();
|
||||
set_cookie('uuid_name', uuid_val);
|
||||
}
|
||||
let url = common_store.common.preview_url;
|
||||
// 判断是否包含? 如果包含?的话就是添加参数,否则就是添加?后添加参数
|
||||
new_link.value = url + (url.includes('?') ? '&id=' : '?id=') + props.dataId + '&system_type=default' + token.value + '&uid=' + uid_val;
|
||||
new_link.value = url + (url.includes('?') ? '&id=' : '?id=') + props.dataId + '&system_type=default' + token.value + '&uuid=' + uuid_val;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue