|
@@ -90,7 +90,7 @@ export default {
|
|
return this.$route.query.name || '相册详情'
|
|
return this.$route.query.name || '相册详情'
|
|
},
|
|
},
|
|
queryIdOrType() {
|
|
queryIdOrType() {
|
|
- const id = this.$route.params.id
|
|
|
|
|
|
+ const id = this.$route.query.pid
|
|
if (this.type === 'DEFAULT') {
|
|
if (this.type === 'DEFAULT') {
|
|
return {
|
|
return {
|
|
id,
|
|
id,
|
|
@@ -184,11 +184,11 @@ export default {
|
|
async confirm() {
|
|
async confirm() {
|
|
try {
|
|
try {
|
|
await this.$confirm('是否确认修改照片信息?', '提示')
|
|
await this.$confirm('是否确认修改照片信息?', '提示')
|
|
- const data = this.list.map((item, index) => ({
|
|
|
|
|
|
+ const data = this.list.map((item, index) => ([{
|
|
...item,
|
|
...item,
|
|
order: index,
|
|
order: index,
|
|
clientShow: +this.views.includes(item.id)
|
|
clientShow: +this.views.includes(item.id)
|
|
- }))
|
|
|
|
|
|
+ }]))
|
|
await photoUpdate(data)
|
|
await photoUpdate(data)
|
|
this.editing = false
|
|
this.editing = false
|
|
this.$message.success('修改成功')
|
|
this.$message.success('修改成功')
|