Commit 81ddeb04 authored by Damon's avatar Damon

feat: 扫描充电桩编码兼容

parent 71b8807f
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
success: function (res) { success: function (res) {
let result = res.result let result = res.result
if (result.substring(0, 4) === 'http') { if (result.substring(0, 4) === 'http') {
const arr = result.split('/#/') let arr = result.split('/#/')
console.log("arr", arr) if (arr.length < 2) arr = result.split('?')
result = arr[1] result = arr[1]
} }
self.dataValue = result self.dataValue = result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment