style(components): format CSS styles in Vue components
- Remove extra spaces in CSS property declarations - Consolidate multi-line CSS rules into single lines - Maintain consistent formatting across component styles - Improve readability by removing unnecessary line breaks - Ensure uniform styling structure in scoped CSS blocks
This commit is contained in:
@@ -1,17 +1,10 @@
|
||||
export type HttpMethod = 'GET' | 'POST' | 'DELETE';
|
||||
const RUOYI_BASE = 'http://8.138.23.49:8085';
|
||||
//const RUOYI_BASE = 'http://192.168.1.89:8085';
|
||||
export const CONFIG = {
|
||||
CLIENT_BASE: 'http://localhost:8081',
|
||||
RUOYI_BASE,
|
||||
SSE_URL: `${RUOYI_BASE}/monitor/account/events`
|
||||
} as const;
|
||||
import { AppConfig, isRuoyiPath } from '../config'
|
||||
|
||||
export type HttpMethod = 'GET' | 'POST' | 'DELETE'
|
||||
export const CONFIG = AppConfig
|
||||
|
||||
function resolveBase(path: string): string {
|
||||
// 路由到 ruoyi-admin (8085):仅系统管理和监控相关
|
||||
if (path.startsWith('/monitor/') || path.startsWith('/system/') || path.startsWith('/tool/banma') || path.startsWith('/tool/genmai')) {
|
||||
return CONFIG.RUOYI_BASE;
|
||||
}
|
||||
return CONFIG.CLIENT_BASE;
|
||||
return isRuoyiPath(path) ? CONFIG.RUOYI_BASE : CONFIG.CLIENT_BASE
|
||||
}
|
||||
|
||||
function buildQuery(params?: Record<string, unknown>): string {
|
||||
|
||||
Reference in New Issue
Block a user