Browse Source

fix: 删除评论

jinx 1 year ago
parent
commit
ec320d3d16
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/components/files/content/Comment.vue
  2. 2 2
      vue.config.js

+ 1 - 1
src/components/files/content/Comment.vue

@@ -190,7 +190,7 @@ const getAllComments = () => {
 }
 const handlerDel = status => {
     if (status == 'ok') {
-        http.post(`smart-site/comment/del${projectId}`, { commentId: delComfirm.value.commentId }).then(response => {
+        http.post(`smart-site/comment/del/${projectId}`, { commentId: delComfirm.value.commentId }).then(response => {
             if (response.success) {
                 // if (!delComfirm.value.parentIndex) {
                 //     commentList.value.splice(delComfirm.value.index, 1)

+ 2 - 2
vue.config.js

@@ -17,14 +17,14 @@ const devServer = {
     },
     proxy: {
         '/service': {
-            target: 'https://www.4dkankan.com/',
+            target: 'https://test.4dkankan.com/',
             changeOrigin: true,
             headers: {
                 Connection: 'keep-alive',
             }
         },
         '/smart-site': {
-            target: 'https://www.4dkankan.com/',//'http://192.168.0.152:8111', //
+            target: 'https://test.4dkankan.com/',//'http://192.168.0.152:8111', //
             changeOrigin: true,
             headers: {
                 Connection: 'keep-alive',