fix(工具箱/新窗口中打开): 统一变量声明方式
This commit is contained in:
@@ -76,10 +76,10 @@ const data = reactive({
|
|||||||
/** 打开窗口 */
|
/** 打开窗口 */
|
||||||
function openWindow() {
|
function openWindow() {
|
||||||
|
|
||||||
var link = data.url || 'https://github.com/Frost-ZX';
|
let link = data.url || 'https://github.com/Frost-ZX';
|
||||||
var width = data.width ?? 400;
|
let width = data.width ?? 400;
|
||||||
var height = data.height ?? 300;
|
let height = data.height ?? 300;
|
||||||
var features = `height=${height}, width=${width}, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=yes, status=yes`;
|
let features = `height=${height}, width=${width}, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=yes, status=yes`;
|
||||||
|
|
||||||
window.open(link, '_blank', features);
|
window.open(link, '_blank', features);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user