From 758a1583234227f69f497be5c720d473cca7a82a Mon Sep 17 00:00:00 2001 From: maziyang <2049865907@qq.com> Date: Mon, 30 Jun 2025 14:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E4=B8=80=E5=B1=80=E5=9F=9F=E7=BD=91?= =?UTF-8?q?=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/home/AsideMenu.vue | 4 ++-- src/utils/request.js | 2 +- src/views/Vote/Vote.vue | 2 +- src/views/test/test.vue | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 390f373..acd1607 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --host 0.0.0.0", "build": "vite build", "preview": "vite preview" }, diff --git a/src/components/home/AsideMenu.vue b/src/components/home/AsideMenu.vue index 96b664f..94c7ddd 100644 --- a/src/components/home/AsideMenu.vue +++ b/src/components/home/AsideMenu.vue @@ -31,10 +31,10 @@ 文章投票管理 - + diff --git a/src/utils/request.js b/src/utils/request.js index 3ce19e7..f279745 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -2,7 +2,7 @@ import axios from 'axios'; export const request = axios.create({ - baseURL: 'http://127.0.0.1:8000', + baseURL: 'http://192.168.8.237:8000', timeout:10000, headers: { 'Content-Type': 'application/json' diff --git a/src/views/Vote/Vote.vue b/src/views/Vote/Vote.vue index de09451..360a0d3 100644 --- a/src/views/Vote/Vote.vue +++ b/src/views/Vote/Vote.vue @@ -95,7 +95,7 @@ const optionLists = reactive([{ }]) // 获取文章及其投票活动 -record.articleId = 12 // 模拟数据,此处为文章id +record.articleId = 25 // 模拟数据,此处为文章id const getVote = async () => { try { const res = await apiGetVote(record.articleId) diff --git a/src/views/test/test.vue b/src/views/test/test.vue index 9506af6..ca03ee7 100644 --- a/src/views/test/test.vue +++ b/src/views/test/test.vue @@ -18,7 +18,7 @@