焊接日报上传附件
This commit is contained in:
+6
-6
@@ -9,12 +9,12 @@ export const parseScanResult = (str) => {
|
||||
if (!str) return null
|
||||
|
||||
// 焊接接头二维码:https://sggl.sedin.com.cn/StaticPage/HJGL/index.html?id=xxx&weldjoint=1
|
||||
// if (str.includes('weldjoint')) {
|
||||
// const id = getUrlParam(str, 'id')
|
||||
// if (id) {
|
||||
// return { path: '/scanpages/hj/material_sampling', query: `id=${id}` }
|
||||
// }
|
||||
// }
|
||||
if (str.includes('weldjoint')) {
|
||||
const id = getUrlParam(str, 'id')
|
||||
if (id) {
|
||||
return { path: '/scanpages/hj/daily_paper', query: `id=${id}` }
|
||||
}
|
||||
}
|
||||
|
||||
// 后续可在此扩展其他扫码类型...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user