|
@@ -144,7 +144,7 @@ export default {
|
|
},
|
|
},
|
|
//修改提交触发
|
|
//修改提交触发
|
|
editCustomer() {
|
|
editCustomer() {
|
|
- if (JSON.parse(localStorage.getItem('saber-userInfo')).content.dept_id.indexOf(this.form.createDept) == -1) {
|
|
|
|
|
|
+ if (this.form.createDept && JSON.parse(localStorage.getItem('saber-userInfo')).content.dept_id.indexOf(this.form.createDept) == -1) {
|
|
this.$message.warning('暂无权限')
|
|
this.$message.warning('暂无权限')
|
|
return
|
|
return
|
|
}
|
|
}
|