设备扫码注册以及我的二维码修改
This commit is contained in:
@@ -271,7 +271,7 @@ export default {
|
||||
queryTopologyDiagramPage({
|
||||
projectId: this.formData.projectId,
|
||||
}).then((res) => {
|
||||
this.imageList = res.data.records.map(item=>{
|
||||
this.imageList = res.data.records.map(item => {
|
||||
return {
|
||||
...item,
|
||||
filePath: this.$config.static + item.filePath
|
||||
@@ -297,12 +297,13 @@ export default {
|
||||
},
|
||||
scanCode() {
|
||||
uni.scanCode({
|
||||
success(res) {
|
||||
success: (res) => {
|
||||
console.log('条码类型:' + res.scanType)
|
||||
console.log('条码内容:' + res.result)
|
||||
let content = JSON.parse(res.result)
|
||||
console.log(content)
|
||||
if (content.type === 'NDID') {
|
||||
this.formData.nDid = content.nDid
|
||||
this.formData.nDid = content.data
|
||||
this.register()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user