修改线上接口地址

This commit is contained in:
2026-08-31 10:05:51 +08:00
parent 76fe37d378
commit 5ecd8ac95c
5 changed files with 565 additions and 464 deletions
@@ -4,6 +4,7 @@ import type { VNode } from 'vue';
import { useAuthStore } from '@/store/modules/auth';
import { useRouterPush } from '@/hooks/common/router';
import { useSvgIcon } from '@/hooks/common/icon';
import { localStg } from '@/utils/storage';
defineOptions({
name: 'UserAvatar'
@@ -80,7 +81,7 @@ function handleDropdown(key: DropdownKey) {
<div>
<ButtonIcon>
<SvgIcon icon="ph:user-circle" class="text-icon-large" />
<span class="text-16px font-medium">{{ authStore.userInfo.username }}</span>
<span class="text-16px font-medium">{{ localStg.get('userInfo')?.username }}</span>
</ButtonIcon>
</div>
</NDropdown>
+9
View File
@@ -77,3 +77,12 @@ export function deleteTemplateApi(id:number) {
});
}
// 获取风险矩阵配置
export function matrixConfigApi(bizType:string) {
return request({
url: `/api/risk-matrix/${bizType}`,
method: 'get',
});
}
+1 -1
View File
@@ -198,7 +198,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
* @param {string} parentPath - 父级路径(用于拼接相对路径,本例中所有路径都是绝对路径,可忽略)
* @returns {Array} 过滤后的路由数组
*/
function filterRoutesByPaths(routes: ElegantConstRoute[], allowedPaths: string[], parentPath = '') {
function filterRoutesByPaths(routes: ElegantConstRoute[], allowedPaths: string[], parentPath = ''):any {
const result = [];
const pathSet = new Set(allowedPaths);
+3 -2
View File
@@ -5,7 +5,7 @@ import json5 from 'json5';
*
* @param env The current env
*/
let url = 'http://192.168.0.230:8086';
let url = '';
export function createServiceConfig(env: Env.ImportMeta) {
const { VITE_SERVICE_BASE_URL, VITE_OTHER_SERVICE_BASE_URL } = env;
@@ -19,7 +19,8 @@ export function createServiceConfig(env: Env.ImportMeta) {
if(env.DEV){
url = 'http://192.168.0.230:8086';
}else{
url = window.location.origin;
// url = window.location.origin;
url = 'http://192.168.0.230:8086';
}
const httpConfig: App.Service.SimpleServiceConfig = {
baseURL: url,
File diff suppressed because it is too large Load Diff