详情页收藏功能BUG修改

This commit is contained in:
a0049873 2022-07-19 15:05:37 +08:00
parent 9a681317f0
commit e770028fba
5 changed files with 13 additions and 13 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 16:06:10
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-15 20:44:47
* @LastEditTime: 2022-07-19 14:02:54
* @Description: 关联组件
-->
<template>

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-19 11:09:23
* @LastEditTime: 2022-07-19 15:02:23
* @Description: 算法详情页头部
-->
<template>
@ -154,7 +154,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = false
props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@ -167,7 +167,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = true
props.dataList.isCollect = 'true'
scFlag2.value = true
}
})

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-19 11:09:52
* @LastEditTime: 2022-07-19 15:02:47
* @Description: 算法详情页头部
-->
<template>
@ -137,7 +137,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = false
props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@ -150,7 +150,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = true
props.dataList.isCollect = 'true'
scFlag2.value = true
}
})

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-19 11:10:06
* @LastEditTime: 2022-07-19 15:03:50
* @Description: 开发组件详情页头部
-->
<template>
@ -132,7 +132,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = false
props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@ -145,7 +145,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = true
props.dataList.isCollect = 'true'
scFlag2.value = true
}
})

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-19 11:10:20
* @LastEditTime: 2022-07-19 15:04:02
* @Description: 算法详情页头部
-->
<template>
@ -132,7 +132,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = false
props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@ -145,7 +145,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = true
props.dataList.isCollect = 'true'
scFlag2.value = true
}
})