Browse Source

代码重构

dev-V1.0.1
庄锐波 7 months ago
parent
commit
eaf36c1885
  1. 2
      zdxt-web-client/zdxt-admin-plus-ui/.env.development
  2. 2
      zdxt-web-client/zdxt-admin-plus-ui/package.json
  3. 3
      zdxt-web-client/zdxt-admin-plus-ui/tsconfig.json
  4. 3
      zdxt-web-client/zdxt-admin-plus-ui/vite.config.ts
  5. 3
      zdxt-web-client/zdxt-enforcement-code-app/src/http/index.js

2
zdxt-web-client/zdxt-admin-plus-ui/.env.development

@ -17,7 +17,7 @@ VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/admin/applications'
# SnailJob 控制台地址 # SnailJob 控制台地址
VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job' VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job'
VITE_APP_PORT = 80 VITE_APP_PORT = 12004
# 接口加密功能开关(如需关闭 后端也必须对应关闭) # 接口加密功能开关(如需关闭 后端也必须对应关闭)
VITE_APP_ENCRYPT = true VITE_APP_ENCRYPT = true

2
zdxt-web-client/zdxt-admin-plus-ui/package.json

@ -26,7 +26,7 @@
"@vueuse/core": "13.9.0", "@vueuse/core": "13.9.0",
"animate.css": "4.1.1", "animate.css": "4.1.1",
"await-to-js": "3.0.0", "await-to-js": "3.0.0",
"axios": "1.13.5", "axios": "^1.15.0",
"crypto-js": "4.2.0", "crypto-js": "4.2.0",
"echarts": "5.6.0", "echarts": "5.6.0",
"element-plus": "2.11.7", "element-plus": "2.11.7",

3
zdxt-web-client/zdxt-admin-plus-ui/tsconfig.json

@ -18,7 +18,8 @@
"esModuleInterop": true, "esModuleInterop": true,
"noEmit": true, "noEmit": true,
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"],
"axios": ["./node_modules/axios/index.d.ts"]
}, },
"types": ["node", "vite/client"], "types": ["node", "vite/client"],
// 自定义配置 // 自定义配置

3
zdxt-web-client/zdxt-admin-plus-ui/vite.config.ts

@ -1,5 +1,8 @@
// @ts-ignore
import { defineConfig, loadEnv } from 'vite'; import { defineConfig, loadEnv } from 'vite';
// @ts-ignore
import createPlugins from './vite/plugins'; import createPlugins from './vite/plugins';
// @ts-ignore
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀 import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
import path from 'path'; import path from 'path';

3
zdxt-web-client/zdxt-enforcement-code-app/src/http/index.js

@ -1,5 +1,4 @@
import http from "./http"; import http from "./http";
import { baseUrl } from "../config/env";
// import qs from "qs"; // import qs from "qs";
// import {cache} from '@/store/store'; // import {cache} from '@/store/store';
@ -37,8 +36,6 @@ function request(type, url, params, success, error) {
var targetUrl = ""; var targetUrl = "";
if(isHttpLink(url)){ if(isHttpLink(url)){
targetUrl = url targetUrl = url
}else{
targetUrl = baseUrl + url
} }
let config = { let config = {
method: type, method: type,

Loading…
Cancel
Save