修改diy预览显示处理

v1.4.0
于肖磊 2025-07-16 10:54:07 +08:00
parent cd74477007
commit cee3bc1640
1 changed files with 6 additions and 6 deletions

View File

@ -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;
}
}
);