Обновление в БД
This commit is contained in:
1 parent
bc26a6a50d
commit
643d14c35d
4 files changed
+19
-5
No files matched your search
@@ -164,11 +164,19 @@ export default {
|
||||
}
|
||||
|
||||
function proba() {
|
||||
|
||||
const feedObj = {}
|
||||
|
||||
feedObj.comment = comment.value
|
||||
axiosApiInstance.post(`api/feedback/userComment/`, feedObj)
|
||||
// console.log(t_userComment.value, 't_userComment.value');
|
||||
if (t_userComment.value.length==0) {
|
||||
axiosApiInstance.post(`api/feedback/userComment/`, feedObj)
|
||||
}
|
||||
else {
|
||||
console.log('------------------yuiyui----/${t_userComment.value[0].id}------', );
|
||||
axiosApiInstance.put(`api/feedback/userCommentUp/${t_userComment.value[0].id}/`, feedObj)
|
||||
}
|
||||
|
||||
// console.log(t_userComment.value.length, 't_userComment.value');
|
||||
}
|
||||
|
||||
return {t_baseCriteria, tab_userComment, comment, average, feedAll, feedUp, menusCloses, myLabel, proba}
|
||||
|
||||
Reference in new issue
Block a user