Explorar o código

修改服务地址

yanglzh %!s(int64=3) %!d(string=hai) anos
pai
achega
330396d7df
Modificáronse 3 ficheiros con 16 adicións e 16 borrados
  1. 1 1
      .env.development
  2. 1 0
      src/i18n/index.ts
  3. 14 15
      src/router/index.ts

+ 1 - 1
.env.development

@@ -2,4 +2,4 @@
 ENV = 'development'
 
 # 本地环境接口地址
-VITE_API_URL = 'http://localhost:8201/'
+VITE_API_URL = 'http://sgadserver.wdeveloperw.xyz/'

+ 1 - 0
src/i18n/index.ts

@@ -50,6 +50,7 @@ const messages = {
 
 // 导出语言国际化
 export const i18n = createI18n({
+	legacy: false,
 	locale: store.state.themeConfig.themeConfig.globalI18n,
 	fallbackLocale: zhcnLocale.name,
 	messages,

+ 14 - 15
src/router/index.ts

@@ -188,7 +188,7 @@ const { isRequestRoutes } = store.state.themeConfig.themeConfig;
 if (!isRequestRoutes) initFrontEndControlRoutes();
 
 
-import {isInit} from "/@/api/system/dbInit"
+// import { isInit } from "/@/api/system/dbInit"
 // 路由加载前
 router.beforeEach(async (to, from, next) => {
 	NProgress.configure({ showSpinner: false });
@@ -198,20 +198,19 @@ router.beforeEach(async (to, from, next) => {
 		next();
 		NProgress.done();
 	}
-
-	if (Session.get("isInit") !== true) {
-		const res:any  = await isInit()
-		let {code, data}  = res
-		if (code === 0 ) {
-			if (data === false) {
-				next('/dbInit');
-				NProgress.done();
-				return
-			} else {
-				Session.set("isInit", true)
-			}
-		}
-	}
+	// if (Session.get("isInit") !== true) {
+	// 	const res: any = await isInit()
+	// 	let { code, data } = res
+	// 	if (code === 0) {
+	// 		if (data === false) {
+	// 			next('/dbInit');
+	// 			NProgress.done();
+	// 			return
+	// 		} else {
+	// 			Session.set("isInit", true)
+	// 		}
+	// 	}
+	// }
 
 
 	// 正常流程