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

腾讯服务器

上级 68610d73
此差异已折叠。
此差异已折叠。
...@@ -2,13 +2,13 @@ import axios from 'axios' ...@@ -2,13 +2,13 @@ import axios from 'axios'
// 创建一个名为 ApiService 的对象,包含您的异步方法 // 创建一个名为 ApiService 的对象,包含您的异步方法
const ApiService = { const ApiService = {
async triplet(articleId) { 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) { 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) { 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: { params: {
id: id id: id
} }
......
...@@ -281,7 +281,7 @@ export default { ...@@ -281,7 +281,7 @@ export default {
async addQuestion(addType) { async addQuestion(addType) {
try { try {
this.loading = true 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, addType: addType,
questionName: this.form.questionName, questionName: this.form.questionName,
questionType: this.form.questionType, questionType: this.form.questionType,
...@@ -322,7 +322,7 @@ export default { ...@@ -322,7 +322,7 @@ export default {
async editConfirm() { async editConfirm() {
try { try {
this.loading = true 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, id: this.currentRowId,
questionName: this.form.questionName, questionName: this.form.questionName,
questionType: this.form.questionType, questionType: this.form.questionType,
...@@ -352,7 +352,7 @@ export default { ...@@ -352,7 +352,7 @@ export default {
async onDelete(id) { async onDelete(id) {
this.dialogVisible = false this.dialogVisible = false
this.loading = true 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: { params: {
id: id, id: id,
}, },
...@@ -367,7 +367,7 @@ export default { ...@@ -367,7 +367,7 @@ export default {
}, },
async getQuestionType() { 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) { if (res.code === 200) {
this.options = res.result this.options = res.result
//获取问题列表 //获取问题列表
...@@ -376,7 +376,7 @@ export default { ...@@ -376,7 +376,7 @@ export default {
}, },
async getAllQuestionType() { 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) { if (res.code === 200) {
this.allOptions = res.result this.allOptions = res.result
} }
...@@ -384,7 +384,7 @@ export default { ...@@ -384,7 +384,7 @@ export default {
async interviewPage() { async interviewPage() {
this.loading = true 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: { params: {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
...@@ -409,7 +409,7 @@ export default { ...@@ -409,7 +409,7 @@ export default {
}, },
async interviewRandom() { async interviewRandom() {
this.loading = true 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) { if (res.code === 200) {
this.randomAlgorithmic.questionName = res.result.questionName this.randomAlgorithmic.questionName = res.result.questionName
this.randomAlgorithmic.leetcodeNumber = res.result.leetcodeNumber this.randomAlgorithmic.leetcodeNumber = res.result.leetcodeNumber
......
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
async addQuestion(addType) { async addQuestion(addType) {
try { try {
this.loading = true 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, addType: addType,
poetryText: this.form.poetryText, poetryText: this.form.poetryText,
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
async editConfirm() { async editConfirm() {
try { try {
this.loading = true 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, id: this.currentRowId,
poetryText: this.form.poetryText, poetryText: this.form.poetryText,
}) })
...@@ -245,7 +245,7 @@ export default { ...@@ -245,7 +245,7 @@ export default {
async onDelete(id) { async onDelete(id) {
this.dialogVisible = false this.dialogVisible = false
this.loading = true 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: { params: {
id: id, id: id,
}, },
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
}, },
async interviewPage() { async interviewPage() {
this.loading = true 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: { params: {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
...@@ -275,7 +275,7 @@ export default { ...@@ -275,7 +275,7 @@ export default {
}, },
async interviewRandom() { async interviewRandom() {
this.loading = true 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) { if (res.code === 200) {
this.randomAlgorithmic.poetryText = res.result.poetryText this.randomAlgorithmic.poetryText = res.result.poetryText
} }
......
...@@ -354,7 +354,7 @@ export default { ...@@ -354,7 +354,7 @@ export default {
async addUser(addType) { async addUser(addType) {
try { try {
this.loading = true 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, addType: addType,
userName: this.form.userName, userName: this.form.userName,
articleId: this.form.articleId, articleId: this.form.articleId,
...@@ -385,7 +385,7 @@ export default { ...@@ -385,7 +385,7 @@ export default {
async editConfirm() { async editConfirm() {
try { try {
this.loading = true 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, id: this.currentRowId,
articleId: this.form.articleId, articleId: this.form.articleId,
userName: this.form.userName, userName: this.form.userName,
...@@ -412,7 +412,7 @@ export default { ...@@ -412,7 +412,7 @@ export default {
}, },
async getScore() { async getScore() {
this.loading = true 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) { if (res.code === 200) {
this.form.articleScore = res.result this.form.articleScore = res.result
} else { } else {
...@@ -463,7 +463,7 @@ export default { ...@@ -463,7 +463,7 @@ export default {
}, },
async articleInfoPage() { async articleInfoPage() {
this.loading = true 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, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
articleId: this.formInline.articleId, articleId: this.formInline.articleId,
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
methods: { methods: {
async onDelete(id) { async onDelete(id) {
this.loading = true 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: { params: {
id: id, id: id,
}, },
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
async initCartList() { async initCartList() {
this.loading = true 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: { params: {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
......
此差异已折叠。
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
try { try {
this.loading = true 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, addType: addType,
question: this.form.question, question: this.form.question,
questionType: this.form.questionType, questionType: this.form.questionType,
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
try { try {
this.loading = true 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, id: this.currentRowId,
question: this.form.question, question: this.form.question,
questionType: this.form.questionType, questionType: this.form.questionType,
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
async onDelete(id) { async onDelete(id) {
this.dialogVisible = false this.dialogVisible = false
this.loading = true 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: { params: {
id: id, id: id,
}, },
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
}, },
async getQuestionType() { 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) { if (res.code === 200) {
this.options = res.result this.options = res.result
this.interviewPage() this.interviewPage()
...@@ -287,7 +287,7 @@ export default { ...@@ -287,7 +287,7 @@ export default {
async interviewPage() { async interviewPage() {
this.loading = true 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: { params: {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
}, },
async queryPic() { async queryPic() {
this.loading = true 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: { params: {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
......
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
}, },
async tripletDayInfoPage() { async tripletDayInfoPage() {
this.loading = true 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, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
startDate: this.formInline.startDate, startDate: this.formInline.startDate,
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
}, },
async reset() { async reset() {
this.loading = true 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.resetDialogVisible = false
this.tripletDayInfoPage() this.tripletDayInfoPage()
this.loading = false this.loading = false
......
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
}, },
async interviewRandom() { async interviewRandom() {
this.loading = true 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) { if (res.code === 200) {
this.randomAlgorithmic.poetryText = res.result.poetryText this.randomAlgorithmic.poetryText = res.result.poetryText
} }
......
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
response: this.form.response, response: this.form.response,
} }
axios axios
.post('http://120.79.36.53:8888/chatbot', data) .post('http://43.139.90.182:8888/chatbot', data)
.then((response) => { .then((response) => {
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中 // 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if (response.data.code === 200) { if (response.data.code === 200) {
......
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
// 封装请求列表数据的方法 // 封装请求列表数据的方法
async initChatList() { async initChatList() {
// 调用 axios 的 get 方法,请求列表数据 // 调用 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 中 // 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if (res.code === 200) { if (res.code === 200) {
this.list = [ this.list = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册