|
@@ -124,13 +124,7 @@ export default {
|
|
|
} else {
|
|
|
// 获取父级分类 名称
|
|
|
if (this.nowData && this.nowData.namePaths) {
|
|
|
- let namePathsArr = []
|
|
|
- namePathsArr = this.nowData.namePaths.split(',')
|
|
|
- this.parentType = ''
|
|
|
- namePathsArr.map((item, index) => {
|
|
|
- this.parentType += item + ' > '
|
|
|
- })
|
|
|
- this.parentType = this.parentType ? this.parentType.substr(0, this.parentType.length - 3) : ''
|
|
|
+ this.parentType = this.nowData.namePaths.replace(/,/g, '>')
|
|
|
} else {
|
|
|
this.parentType = ''
|
|
|
}
|