|
@@ -126,7 +126,9 @@ export default {
|
|
|
if (this.nowData && this.nowData.namePaths) {
|
|
|
let namePathsArr = []
|
|
|
namePathsArr = this.nowData.namePaths.split(',')
|
|
|
- namePathsArr = namePathsArr.slice(0, namePathsArr.length - 1)
|
|
|
+ if (this.itemId) { // 编辑 编辑时不显示当前分类
|
|
|
+ namePathsArr = namePathsArr.slice(0, namePathsArr.length - 1)
|
|
|
+ }
|
|
|
this.parentType = ''
|
|
|
namePathsArr.map((item, index) => {
|
|
|
this.parentType += item + ' > '
|