fix: 终端shell改PowerShell(pwd/ls可用) + 浏览器默认页改example.com(可嵌入) + marker回显验证

This commit is contained in:
Aisland
2026-08-17 20:48:13 +08:00
parent f83aa1d589
commit 3fe012132e
5 changed files with 26 additions and 11 deletions
+2 -2
View File
@@ -741,8 +741,8 @@ function makeDividerHandler(kind: 'left' | 'chat' | 'top' | 'pane' | 'topPane',
/** 浏览器内置窗:地址栏 + iframe */
function BrowserPane() {
const [url, setUrl] = useState('https://www.bing.com')
const [src, setSrc] = useState('https://www.bing.com')
const [url, setUrl] = useState('https://example.com')
const [src, setSrc] = useState('https://example.com')
const go = () => {
const u = url.trim()
setSrc(/^(\/|https?:\/\/)/i.test(u) ? u : 'about:blank')