Commit 0be339be by chenwq

fix(sendBack/add): 修复路由信息可能为undefined的问题

使用可选链操作符处理可能为undefined的路由查询参数,防止访问属性时出错
1 parent 8ab77fde
......@@ -342,8 +342,8 @@ export default {
},
mounted() {
this.routeInfo = this.$route.query.row
if (this.routeInfo.refundCode) {
this.routeInfo = this.$route.query?.row || {}
if (this.routeInfo?.refundCode) {
this.oprType = 'edit'
this.editFirst = true
this.editMerFirst = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!