1
0
mirror of synced 2025-12-10 00:17:58 +08:00

fix(info): escape location #127

This commit is contained in:
surunzi
2019-11-07 17:41:40 +08:00
parent aadd4d9092
commit 5b3dcc8eaa

View File

@@ -1,4 +1,4 @@
import { detectBrowser, detectOs } from '../lib/util'
import { detectBrowser, detectOs, escape } from '../lib/util'
const browser = detectBrowser()
@@ -6,7 +6,7 @@ export default [
{
name: 'Location',
val() {
return location.href
return escape(location.href)
}
},
{