diff --git a/src/views/Home.vue b/src/views/Home.vue index df0247d..009061f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -11,7 +11,7 @@

{{ item.name }}

{{ item.description }}

{{ item.content }}

- 管理 + 管理 编辑 删除 @@ -57,14 +57,11 @@ import { onMounted, reactive, ref } from "vue"; import { Plus } from "@element-plus/icons-vue"; import { ElMessage,ElMessageBox } from "element-plus"; import myApi from "@/api/myApi.js"; -import axios from "axios"; +import { useRouter } from 'vue-router' -const projects = ref(); +const router = useRouter() - -onMounted(() => { - get_projects(); -}) +const projects = ref([]); const get_projects = async () => { const param = { @@ -94,6 +91,7 @@ const add_project_info = reactive({ name: "", description: "", }); + const add_project = async () => { const param = { action: 101, diff --git a/src/views/Room.vue b/src/views/Room.vue index d89760c..99b81ac 100644 --- a/src/views/Room.vue +++ b/src/views/Room.vue @@ -1,17 +1,18 @@ \ No newline at end of file +} + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 0151652..4671183 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,6 +15,7 @@ export default defineConfig({ proxy: { '/api': { target: 'http://api.shikicc.com:58909', + // target: 'http://10.10.10.4:3000', changeOrigin: true, rewrite: path => path.replace(/^\/api/, '/api') }