fix(工具箱/新窗口中打开): 统一变量声明方式

This commit is contained in:
2025-02-07 17:33:00 +08:00
parent b338b91e5a
commit 9aa47a6b3b

View File

@@ -76,10 +76,10 @@ const data = reactive({
/** 打开窗口 */
function openWindow() {
var link = data.url || 'https://github.com/Frost-ZX';
var width = data.width ?? 400;
var height = data.height ?? 300;
var features = `height=${height}, width=${width}, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=yes, status=yes`;
let link = data.url || 'https://github.com/Frost-ZX';
let width = data.width ?? 400;
let height = data.height ?? 300;
let features = `height=${height}, width=${width}, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=yes, status=yes`;
window.open(link, '_blank', features);