添加点赞状态

上级 85fba5f0
.login-container[data-v-1be4e8ce]{background-color:#35495e;height:100%}.login-container .login-box[data-v-1be4e8ce]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-1be4e8ce]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-1be4e8ce]{flex:1}.avatar-box[data-v-1be4e8ce]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-1be4e8ce]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-747b32ea]{height:50px}.layout-aside-container[data-v-08a8fba8]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-08a8fba8]{font-size:20px}.el-main{padding:20px 3px!important}.el-header[data-v-15b8f4b2]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-15b8f4b2]{color:#333}.pagination[data-v-15b8f4b2]{margin-top:16px;text-align:right}.arrow-button[data-v-15b8f4b2]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-15b8f4b2]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-15b8f4b2]{pointer-events:none;opacity:.1}.el-header[data-v-0be38d50]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-0be38d50]{color:#333}.pagination[data-v-0be38d50]{margin-top:16px;text-align:right}.header-button-item[data-v-0be38d50]{margin-right:15px;font-size:20px}.backtop[data-v-0be38d50]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-0be38d50]:hover{background-color:#0050a0}.el-header[data-v-8d787e5a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-8d787e5a]{color:#333}.pagination[data-v-8d787e5a]{margin-top:16px;text-align:right}.header-button-item[data-v-8d787e5a]{margin-right:15px;font-size:20px}.red-title[data-v-8d787e5a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-8d787e5a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-8d787e5a]{width:100%;text-align:left}.backtop[data-v-8d787e5a]:hover{background-color:#0050a0}.el-header[data-v-1320254c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-1320254c]{color:#333}.pagination[data-v-1320254c]{margin-top:16px;text-align:right}.header-button-item[data-v-1320254c]{margin-right:15px;font-size:20px}.red-title[data-v-1320254c]{line-height:24px;font-size:18px;color:red}.backtop[data-v-1320254c]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-1320254c]{width:100%;text-align:left}.backtop[data-v-1320254c]:hover{background-color:#0050a0}.el-header[data-v-834ece92]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-834ece92]{color:#333}.pagination[data-v-834ece92]{margin-top:16px;text-align:right}.header-button-item[data-v-834ece92]{margin-right:15px;font-size:20px}.red-title[data-v-834ece92]{line-height:24px;font-size:18px;color:red}.backtop[data-v-834ece92]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-834ece92]{width:100%;text-align:left}.backtop[data-v-834ece92]:hover{background-color:#0050a0}.el-header[data-v-07dfebca]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-07dfebca]{color:#333}.pagination[data-v-07dfebca]{margin-top:16px;text-align:right}.header-button-item[data-v-07dfebca]{margin-right:15px;font-size:20px}.red-title[data-v-07dfebca]{line-height:24px;font-size:18px;color:red}.backtop[data-v-07dfebca]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-07dfebca]{width:100%;text-align:left}.backtop[data-v-07dfebca]:hover{background-color:#0050a0}.el-header[data-v-169c9b84]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-169c9b84]{color:#333}.pagination[data-v-169c9b84]{margin-top:16px;text-align:right}.header-button-item[data-v-169c9b84]{margin-right:15px;font-size:20px}.red-title[data-v-169c9b84]{line-height:24px;font-size:18px;color:red}.backtop[data-v-169c9b84]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-169c9b84]{width:100%;text-align:left}.backtop[data-v-169c9b84]:hover{background-color:#0050a0}.el-header[data-v-55a9f15d]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-55a9f15d]{color:#333}.pagination[data-v-55a9f15d]{margin-top:16px;text-align:right}.header-button-item[data-v-55a9f15d]{margin-right:15px;font-size:20px}.red-title[data-v-55a9f15d]{line-height:24px;font-size:18px;color:red}.backtop[data-v-55a9f15d]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-55a9f15d]{width:100%;text-align:left}.backtop[data-v-55a9f15d]:hover{background-color:#0050a0}.button-container[data-v-9d5d30a4]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-ddc6c3e0]{display:flex;justify-content:center;align-items:center;height:30vh}
.login-container[data-v-1be4e8ce]{background-color:#35495e;height:100%}.login-container .login-box[data-v-1be4e8ce]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-1be4e8ce]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-1be4e8ce]{flex:1}.avatar-box[data-v-1be4e8ce]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-1be4e8ce]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-6832cf06]{height:50px}.layout-aside-container[data-v-08a8fba8]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-08a8fba8]{font-size:20px}.el-main{padding:20px 3px!important}.el-header[data-v-f9f45c2c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-f9f45c2c]{color:#333}.pagination[data-v-f9f45c2c]{margin-top:16px;text-align:right}.arrow-button[data-v-f9f45c2c]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-f9f45c2c]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-f9f45c2c]{pointer-events:none;opacity:.1}.el-header[data-v-0aceee38]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-0aceee38]{color:#333}.pagination[data-v-0aceee38]{margin-top:16px;text-align:right}.header-button-item[data-v-0aceee38]{margin-right:15px;font-size:20px}.backtop[data-v-0aceee38]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-0aceee38]:hover{background-color:#0050a0}.el-header[data-v-5b582908]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-5b582908]{color:#333}.pagination[data-v-5b582908]{margin-top:16px;text-align:right}.header-button-item[data-v-5b582908]{margin-right:15px;font-size:20px}.red-title[data-v-5b582908]{line-height:24px;font-size:18px;color:red}.backtop[data-v-5b582908]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-5b582908]{width:100%;text-align:left}.backtop[data-v-5b582908]:hover{background-color:#0050a0}.el-header[data-v-1658ceaa]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-1658ceaa]{color:#333}.pagination[data-v-1658ceaa]{margin-top:16px;text-align:right}.header-button-item[data-v-1658ceaa]{margin-right:15px;font-size:20px}.red-title[data-v-1658ceaa]{line-height:24px;font-size:18px;color:red}.backtop[data-v-1658ceaa]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-1658ceaa]{width:100%;text-align:left}.backtop[data-v-1658ceaa]:hover{background-color:#0050a0}.el-header[data-v-2acbf256]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-2acbf256]{color:#333}.pagination[data-v-2acbf256]{margin-top:16px;text-align:right}.header-button-item[data-v-2acbf256]{margin-right:15px;font-size:20px}.red-title[data-v-2acbf256]{line-height:24px;font-size:18px;color:red}.backtop[data-v-2acbf256]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-2acbf256]{width:100%;text-align:left}.backtop[data-v-2acbf256]:hover{background-color:#0050a0}.el-header[data-v-f04333e0]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-f04333e0]{color:#333}.pagination[data-v-f04333e0]{margin-top:16px;text-align:right}.header-button-item[data-v-f04333e0]{margin-right:15px;font-size:20px}.red-title[data-v-f04333e0]{line-height:24px;font-size:18px;color:red}.backtop[data-v-f04333e0]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-f04333e0]{width:100%;text-align:left}.backtop[data-v-f04333e0]:hover{background-color:#0050a0}.el-header[data-v-2db2ed5e]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-2db2ed5e]{color:#333}.pagination[data-v-2db2ed5e]{margin-top:16px;text-align:right}.header-button-item[data-v-2db2ed5e]{margin-right:15px;font-size:20px}.red-title[data-v-2db2ed5e]{line-height:24px;font-size:18px;color:red}.backtop[data-v-2db2ed5e]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-2db2ed5e]{width:100%;text-align:left}.backtop[data-v-2db2ed5e]:hover{background-color:#0050a0}.el-header[data-v-5dc99689]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-5dc99689]{color:#333}.pagination[data-v-5dc99689]{margin-top:16px;text-align:right}.header-button-item[data-v-5dc99689]{margin-right:15px;font-size:20px}.red-title[data-v-5dc99689]{line-height:24px;font-size:18px;color:red}.backtop[data-v-5dc99689]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-5dc99689]{width:100%;text-align:left}.backtop[data-v-5dc99689]:hover{background-color:#0050a0}.button-container[data-v-2bd88699]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-45dcca77]{display:flex;justify-content:center;align-items:center;height:30vh}
/*!
* Bootstrap v4.5.0 (https://getbootstrap.com/)
......
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.28b33f7e.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.a4086637.js" rel="preload" as="script"><link href="/js/chunk-vendors.533b9d47.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.28b33f7e.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.533b9d47.js"></script><script src="/js/app.a4086637.js"></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.0c82d569.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.07b5c0e2.js" rel="preload" as="script"><link href="/js/chunk-vendors.533b9d47.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.0c82d569.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.533b9d47.js"></script><script src="/js/app.07b5c0e2.js"></script></body></html>
\ No newline at end of file
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
此差异已折叠。
此差异已折叠。
......@@ -2,13 +2,13 @@ import axios from 'axios'
// 创建一个名为 ApiService 的对象,包含您的异步方法
const ApiService = {
async triplet(articleId) {
return await axios.get('http://120.79.36.53:8888/csdnArticleInfo/triplet?articleId=' + articleId);
return await axios.get('http://localhost:8888/csdnArticleInfo/triplet?articleId=' + articleId);
},
async allTriplet(articleIds) {
return await axios.post('http://120.79.36.53:8888/csdnArticleInfo/multiTriplet', articleIds);
return await axios.post('http://localhost:8888/csdnArticleInfo/multiTriplet', articleIds);
},
async onDelete(id) {
return await axios.get('http://120.79.36.53:8888/csdnArticleInfo/delete', {
return await axios.get('http://localhost:8888/csdnArticleInfo/delete', {
params: {
id: id
}
......
......@@ -281,7 +281,7 @@ export default {
async addQuestion(addType) {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/algorithmicProblem/add', {
const { data: res } = await axios.post('http://localhost:8888/algorithmicProblem/add', {
addType: addType,
questionName: this.form.questionName,
questionType: this.form.questionType,
......@@ -322,7 +322,7 @@ export default {
async editConfirm() {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/algorithmicProblem/update', {
const { data: res } = await axios.post('http://localhost:8888/algorithmicProblem/update', {
id: this.currentRowId,
questionName: this.form.questionName,
questionType: this.form.questionType,
......@@ -352,7 +352,7 @@ export default {
async onDelete(id) {
this.dialogVisible = false
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/algorithmicProblem/delete', {
const { data: res } = await axios.get('http://localhost:8888/algorithmicProblem/delete', {
params: {
id: id,
},
......@@ -367,7 +367,7 @@ export default {
},
async getQuestionType() {
const { data: res } = await axios.get('http://120.79.36.53:8888/algorithmicProblem/questionType', { params: {} })
const { data: res } = await axios.get('http://localhost:8888/algorithmicProblem/questionType', { params: {} })
if (res.code === 200) {
this.options = res.result
//获取问题列表
......@@ -376,7 +376,7 @@ export default {
},
async getAllQuestionType() {
const { data: res } = await axios.get('http://120.79.36.53:8888/algorithmicProblem/allQuestionType', { params: {} })
const { data: res } = await axios.get('http://localhost:8888/algorithmicProblem/allQuestionType', { params: {} })
if (res.code === 200) {
this.allOptions = res.result
}
......@@ -384,7 +384,7 @@ export default {
async interviewPage() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/algorithmicProblem/page', {
const { data: res } = await axios.get('http://localhost:8888/algorithmicProblem/page', {
params: {
page: this.currentPage,
pageSize: this.pageSize,
......@@ -409,7 +409,7 @@ export default {
},
async interviewRandom() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/algorithmicProblem/random', { params: {} })
const { data: res } = await axios.get('http://localhost:8888/algorithmicProblem/random', { params: {} })
if (res.code === 200) {
this.randomAlgorithmic.questionName = res.result.questionName
this.randomAlgorithmic.leetcodeNumber = res.result.leetcodeNumber
......
......@@ -187,7 +187,7 @@ export default {
async addQuestion(addType) {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/aphorismPoetry/add', {
const { data: res } = await axios.post('http://localhost:8888/aphorismPoetry/add', {
addType: addType,
poetryText: this.form.poetryText,
......@@ -222,7 +222,7 @@ export default {
async editConfirm() {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/aphorismPoetry/update', {
const { data: res } = await axios.post('http://localhost:8888/aphorismPoetry/update', {
id: this.currentRowId,
poetryText: this.form.poetryText,
})
......@@ -245,7 +245,7 @@ export default {
async onDelete(id) {
this.dialogVisible = false
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/aphorismPoetry/delete', {
const { data: res } = await axios.get('http://localhost:8888/aphorismPoetry/delete', {
params: {
id: id,
},
......@@ -260,7 +260,7 @@ export default {
},
async interviewPage() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/aphorismPoetry/page', {
const { data: res } = await axios.get('http://localhost:8888/aphorismPoetry/page', {
params: {
page: this.currentPage,
pageSize: this.pageSize,
......@@ -275,7 +275,7 @@ export default {
},
async interviewRandom() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/aphorismPoetry/random', { params: {} })
const { data: res } = await axios.get('http://localhost:8888/aphorismPoetry/random', { params: {} })
if (res.code === 200) {
this.randomAlgorithmic.poetryText = res.result.poetryText
}
......
......@@ -218,6 +218,7 @@ export default {
{ type: 1, name: '已经点过赞' },
{ type: 2, name: '点赞已满' },
{ type: 3, name: '取消点赞' },
{ type: 4, name: '文章状态不能点赞' },
{ type: 9, name: '点赞成功' },
],
collectStatus: [
......@@ -353,7 +354,7 @@ export default {
async addUser(addType) {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/csdnArticleInfo/add', {
const { data: res } = await axios.post('http://localhost:8888/csdnArticleInfo/add', {
addType: addType,
userName: this.form.userName,
articleId: this.form.articleId,
......@@ -384,7 +385,7 @@ export default {
async editConfirm() {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/csdnArticleInfo/update', {
const { data: res } = await axios.post('http://localhost:8888/csdnArticleInfo/update', {
id: this.currentRowId,
articleId: this.form.articleId,
userName: this.form.userName,
......@@ -411,7 +412,7 @@ export default {
},
async getScore() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/csdnArticleInfo/getScore?articleUrl=' + this.form.articleUrl)
const { data: res } = await axios.get('http://localhost:8888/csdnArticleInfo/getScore?articleUrl=' + this.form.articleUrl)
if (res.code === 200) {
this.form.articleScore = res.result
} else {
......@@ -462,7 +463,7 @@ export default {
},
async articleInfoPage() {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/csdnArticleInfo/page', {
const { data: res } = await axios.post('http://localhost:8888/csdnArticleInfo/page', {
page: this.currentPage,
pageSize: this.pageSize,
articleId: this.formInline.articleId,
......
......@@ -89,7 +89,7 @@ export default {
methods: {
async onDelete(id) {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/chatbot/delete', {
const { data: res } = await axios.get('http://localhost:8888/chatbot/delete', {
params: {
id: id,
},
......@@ -109,7 +109,7 @@ export default {
async initCartList() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/chatbot/page', {
const { data: res } = await axios.get('http://localhost:8888/chatbot/page', {
params: {
page: this.currentPage,
pageSize: this.pageSize,
......
......@@ -270,6 +270,7 @@ export default {
{ type: 1, name: '已经点过赞' },
{ type: 2, name: '点赞已满' },
{ type: 3, name: '取消点赞' },
{ type: 4, name: '文章状态不能点赞' },
{ type: 9, name: '点赞成功' },
],
collectStatus: [
......@@ -420,7 +421,7 @@ export default {
async addUser(addType) {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/csdn/user/add', {
const { data: res } = await axios.post('http://localhost:8888/csdn/user/add', {
addType: addType,
userName: this.form.userName,
nickName: this.form.nickName,
......@@ -453,7 +454,7 @@ export default {
async editConfirm() {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/csdn/user/update', {
const { data: res } = await axios.post('http://localhost:8888/csdn/user/update', {
id: this.currentRowId,
userName: this.form.userName,
nickName: this.form.nickName,
......@@ -481,7 +482,7 @@ export default {
async autoReply() {
this.loading = true
this.autoReplyDialogVisible = false
const { data: res } = await axios.get('http://120.79.36.53:8888/csdn/autoReply')
const { data: res } = await axios.get('http://localhost:8888/csdn/autoReply')
if (res.code === 200) {
this.userPage()
} else {
......@@ -496,7 +497,7 @@ export default {
console.error('请选择需要处理的项')
} else {
let userNames = this.multipleSelection.map((item) => item.userName)
const { data: res } = await axios.post('http://120.79.36.53:8888/csdn/multiTriplet', userNames)
const { data: res } = await axios.post('http://localhost:8888/csdn/multiTriplet', userNames)
if (res.code === 200) {
this.multipleSelection = []
this.userPage()
......@@ -509,7 +510,7 @@ export default {
async triplet(userName) {
this.loading = true
this.tripletVisible = false
const { data: res } = await axios.get('http://120.79.36.53:8888/csdn/singleTriplet?username=' + userName)
const { data: res } = await axios.get('http://localhost:8888/csdn/singleTriplet?username=' + userName)
if (res.code === 200) {
this.currentUserName = null
this.userPage()
......@@ -520,7 +521,7 @@ export default {
},
async onBlog10(userName) {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/csdn/add10Blog?username=' + userName)
const { data: res } = await axios.get('http://localhost:8888/csdn/add10Blog?username=' + userName)
if (res.code === 200) {
this.currentUserName = null
this.blog10DialogVisible = false
......@@ -533,7 +534,7 @@ export default {
async resetUserDayStatus(userName) {
this.loading = true
this.resetUserDayStatusVisible = false
const { data: res } = await axios.get('http://120.79.36.53:8888/csdn/resetCsdnUserInfo?username=' + userName)
const { data: res } = await axios.get('http://localhost:8888/csdn/resetCsdnUserInfo?username=' + userName)
if (res.code === 200) {
this.currentUserName = null
this.userPage()
......@@ -544,7 +545,7 @@ export default {
},
async onDelete(id) {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/csdn/user/delete', {
const { data: res } = await axios.get('http://localhost:8888/csdn/user/delete', {
params: {
id: id,
},
......@@ -561,7 +562,7 @@ export default {
} else {
let userNames = this.multipleSelection.map((item) => item.userName)
console.log(userNames)
const { data: res } = await axios.post('http://120.79.36.53:8888/csdn/resetCsdnUserInfo', userNames)
const { data: res } = await axios.post('http://localhost:8888/csdn/resetCsdnUserInfo', userNames)
if (res.code === 200) {
this.multipleSelection = []
this.userPage()
......@@ -573,7 +574,7 @@ export default {
},
async resetUser() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/csdn/resetUserDayStatus')
const { data: res } = await axios.get('http://localhost:8888/csdn/resetUserDayStatus')
this.resetUserDialogVisible = false
this.userPage()
this.loading = false
......@@ -585,7 +586,7 @@ export default {
},
async userPage() {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/csdn/user/page', {
const { data: res } = await axios.post('http://localhost:8888/csdn/user/page', {
page: this.currentPage,
pageSize: this.pageSize,
userName: this.formInline.userName,
......
......@@ -205,7 +205,7 @@ export default {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/interviewQuestion/add', {
const { data: res } = await axios.post('http://localhost:8888/interviewQuestion/add', {
addType: addType,
question: this.form.question,
questionType: this.form.questionType,
......@@ -237,7 +237,7 @@ export default {
try {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/interviewQuestion/update', {
const { data: res } = await axios.post('http://localhost:8888/interviewQuestion/update', {
id: this.currentRowId,
question: this.form.question,
questionType: this.form.questionType,
......@@ -262,7 +262,7 @@ export default {
async onDelete(id) {
this.dialogVisible = false
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/interviewQuestion/delete', {
const { data: res } = await axios.get('http://localhost:8888/interviewQuestion/delete', {
params: {
id: id,
},
......@@ -278,7 +278,7 @@ export default {
},
async getQuestionType() {
const { data: res } = await axios.get('http://120.79.36.53:8888/interviewQuestion/questionType', { params: {} })
const { data: res } = await axios.get('http://localhost:8888/interviewQuestion/questionType', { params: {} })
if (res.code === 200) {
this.options = res.result
this.interviewPage()
......@@ -287,7 +287,7 @@ export default {
async interviewPage() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/interviewQuestion/page', {
const { data: res } = await axios.get('http://localhost:8888/interviewQuestion/page', {
params: {
page: this.currentPage,
pageSize: this.pageSize,
......
......@@ -106,7 +106,7 @@ export default {
},
async queryPic() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/picInfo/page', {
const { data: res } = await axios.get('http://localhost:8888/picInfo/page', {
params: {
page: this.currentPage,
pageSize: this.pageSize,
......
......@@ -169,7 +169,7 @@ export default {
},
async tripletDayInfoPage() {
this.loading = true
const { data: res } = await axios.post('http://120.79.36.53:8888/dayInfo/page', {
const { data: res } = await axios.post('http://localhost:8888/dayInfo/page', {
page: this.currentPage,
pageSize: this.pageSize,
startDate: this.formInline.startDate,
......@@ -208,7 +208,7 @@ export default {
},
async reset() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/dayInfo/add')
const { data: res } = await axios.get('http://localhost:8888/dayInfo/add')
this.resetDialogVisible = false
this.tripletDayInfoPage()
this.loading = false
......
......@@ -160,7 +160,7 @@ export default {
},
async interviewRandom() {
this.loading = true
const { data: res } = await axios.get('http://120.79.36.53:8888/aphorismPoetry/random')
const { data: res } = await axios.get('http://localhost:8888/aphorismPoetry/random')
if (res.code === 200) {
this.randomAlgorithmic.poetryText = res.result.poetryText
}
......
......@@ -42,7 +42,7 @@ export default {
response: this.form.response,
}
axios
.post('http://120.79.36.53:8888/chatbot', data)
.post('http://localhost:8888/chatbot', data)
.then((response) => {
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if (response.data.code === 200) {
......
......@@ -66,7 +66,7 @@ export default {
// 封装请求列表数据的方法
async initChatList() {
// 调用 axios 的 get 方法,请求列表数据
const { data: res } = await axios.get('http://120.79.36.53:8888/chatbot/' + this.id)
const { data: res } = await axios.get('http://localhost:8888/chatbot/' + this.id)
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if (res.code === 200) {
this.list = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册