This commit is contained in:
949036910@qq.com
2026-05-27 23:23:06 +08:00
parent da566efca9
commit 39f93bb09a
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
# 开发默认走 Vite 代理 /api -> http://127.0.0.1:8001
VITE_API_BASE_URL=http://81.70.234.81:8001/api/v1
# Tauri Rust 请求后端基址(拉取 appConfig、脚本等
AICLIENT_API_BASE=http://81.70.234.81:8001

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from "vue-router";
import { createRouter, createWebHashHistory } from "vue-router";
import { useAuthStore, ROLE_ADMIN, ROLE_AGENT,ROLE_OEM } from "../stores/auth";
@@ -368,7 +368,7 @@ const routes = [
path: "/:pathMatch(.*)*",
redirect: "/login",
redirect: { name: "login" },
},
@@ -378,7 +378,7 @@ const routes = [
const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes,