提交 6372abb6 编写于 作者: 檀越@新空间's avatar 檀越@新空间 🐭

腾讯服务器

上级 68610d73
因为 它太大了无法显示 source diff 。你可以改为 查看blob
因为 它太大了无法显示 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://43.139.90.182: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://43.139.90.182:8888/csdnArticleInfo/multiTriplet', articleIds);
},
async onDelete(id) {
return await axios.get('http://120.79.36.53:8888/csdnArticleInfo/delete', {
return await axios.get('http://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182:8888/aphorismPoetry/random', { params: {} })
if (res.code === 200) {
this.randomAlgorithmic.poetryText = res.result.poetryText
}
......
......@@ -354,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://43.139.90.182:8888/csdnArticleInfo/add', {
addType: addType,
userName: this.form.userName,
articleId: this.form.articleId,
......@@ -385,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://43.139.90.182:8888/csdnArticleInfo/update', {
id: this.currentRowId,
articleId: this.form.articleId,
userName: this.form.userName,
......@@ -412,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://43.139.90.182:8888/csdnArticleInfo/getScore?articleUrl=' + this.form.articleUrl)
if (res.code === 200) {
this.form.articleScore = res.result
} else {
......@@ -463,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://43.139.90.182: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://43.139.90.182: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://43.139.90.182:8888/chatbot/page', {
params: {
page: this.currentPage,
pageSize: this.pageSize,
......
......@@ -421,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://43.139.90.182:8888/csdn/user/add', {
addType: addType,
userName: this.form.userName,
nickName: this.form.nickName,
......@@ -454,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://43.139.90.182:8888/csdn/user/update', {
id: this.currentRowId,
userName: this.form.userName,
nickName: this.form.nickName,
......@@ -482,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://43.139.90.182:8888/csdn/autoReply')
if (res.code === 200) {
this.userPage()
} else {
......@@ -497,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://43.139.90.182:8888/csdn/multiTriplet', userNames)
if (res.code === 200) {
this.multipleSelection = []
this.userPage()
......@@ -510,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://43.139.90.182:8888/csdn/singleTriplet?username=' + userName)
if (res.code === 200) {
this.currentUserName = null
this.userPage()
......@@ -521,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://43.139.90.182:8888/csdn/add10Blog?username=' + userName)
if (res.code === 200) {
this.currentUserName = null
this.blog10DialogVisible = false
......@@ -534,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://43.139.90.182:8888/csdn/resetCsdnUserInfo?username=' + userName)
if (res.code === 200) {
this.currentUserName = null
this.userPage()
......@@ -545,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://43.139.90.182:8888/csdn/user/delete', {
params: {
id: id,
},
......@@ -562,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://43.139.90.182:8888/csdn/resetCsdnUserInfo', userNames)
if (res.code === 200) {
this.multipleSelection = []
this.userPage()
......@@ -574,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://43.139.90.182:8888/csdn/resetUserDayStatus')
this.resetUserDialogVisible = false
this.userPage()
this.loading = false
......@@ -586,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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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://43.139.90.182: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.
先完成此消息的编辑!
想要评论请 注册