Compare commits

...

No commits in common. "0915" and "0916" have entirely different histories.
0915 ... 0916

5 changed files with 11 additions and 7 deletions

View File

@ -41,5 +41,5 @@ async function bootstrap() {
} }
bootstrap().then(()=>{ bootstrap().then(()=>{
console.log(`http://localhost:${sysBase.port}`); console.log(`${sysBase.host}:${sysBase.port}`);
}); });

View File

@ -1,4 +1,4 @@
//*- coding = utf-8 -*- //*- coding = utf-8 -*-
//@Time : 2022-11-12 16:12 //@Time : 2022-11-12 16:12
//@Author : 管茂良 //@Author : 管茂良
//@File : config.js //@File : config.js
@ -28,8 +28,8 @@ export const handleMyConfig = ()=>{
type: 'mysql',//数据库类型 type: 'mysql',//数据库类型
host: '127.0.0.1',//ip host: '127.0.0.1',//ip
port: 3306,//端口号 port: 3306,//端口号
username: 'root',//账号 username: 'lqs',//账号
password: 'Sj89061189',//密码 password: 'admin',//密码
database: 'server',//数据库名 database: 'server',//数据库名
synchronize: true,//是否自动将实体类同步到数据库 synchronize: true,//是否自动将实体类同步到数据库
retryDelay:500,//重试连接数据库间隙 retryDelay:500,//重试连接数据库间隙

View File

@ -1,10 +1,12 @@
VITE_TITLE = "沉默小管 - vueCms" VITE_TITLE = "沉默小管 - vueCms"
VITE_NODE_ENV = dev VITE_NODE_ENV = dev
VITE_HTTP = http://localhost:3000/ VITE_HTTP = http://localhost:3000/
VITE_SOCKET_HTTP = localhost:9876/ #VITE_SOCKET_HTTP = localhost:9876/
VITE_SOCKET_HTTP = www.gdsfs.top:7996/
VITE_WEB_BASE_URL = https://www.gdsfs.top
#VITE_SOCKET_HTTP = www.gdsfs.top/
# 页面标题 # 页面标题
VITE_APP_TITLE = vueCms VITE_APP_TITLE = vueCms

View File

@ -16,6 +16,7 @@ const domains = [
"cdn.bytedance.com", "cdn.bytedance.com",
"www.jsdelivr.com", "www.jsdelivr.com",
"unpkg.com", "unpkg.com",
"*",
] ]
//重试次数 //重试次数
const maxRetry = 3; const maxRetry = 3;

View File

@ -137,6 +137,7 @@ export default defineConfig(({ command, mode }) => {
target: VITE_HTTP, target: VITE_HTTP,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/dev-api/, ""), rewrite: (path) => path.replace(/^\/dev-api/, ""),
wss: true, // 添加此行以启用WebSocket代理
}, },
}, },
}, },