Merge branch 'v2-dev' of https://github.com/certd/certd into v2-dev

This commit is contained in:
xiaojunnuo
2025-10-05 08:05:59 +00:00
4 changed files with 9 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
#登录与权限开启
VITE_APP_PM_ENABLED=false

View File

@@ -6,6 +6,7 @@
"dev": "vite --open",
"dev:pm": "vite --mode pm",
"dev:force": "vite --force",
"remote": "vite --mode remote --open",
"debug": "vite --mode debug --open",
"debug:pm": "vite --mode debugpm",
"debug:force": "vite --force --mode debug",

View File

@@ -193,7 +193,6 @@ async function loadLatestVersion() {
const minVersion = settingsStore.productInfo?.app?.minVersion;
if (minVersion) {
debugger;
if (isNewVersion(version.value, minVersion)) {
notification.error({
message: settingsStore.productInfo?.app?.minVersionTip ?? "版本过低,为了您的数据安全,请尽快升级",

View File

@@ -25,6 +25,10 @@ export default ({ command, mode }) => {
// if (mode.startsWith("dev")) {
// base = "./";
// }
let proxyTarget: string = "https://127.0.0.1:7002";
if (mode === "remote") {
proxyTarget = "https://yfy.docmirror.cn:7002";
}
return {
base: base,
plugins: [
@@ -82,14 +86,14 @@ export default ({ command, mode }) => {
},
server: {
host: "0.0.0.0",
port: 3008,
port: 13008,
fs: devServerFs,
allowedHosts: ["localhost", "127.0.0.1", "yfy.docmirror.cn"],
proxy: {
// with options
"/api": {
//配套后端 https://github.com/fast-crud/fs-server-js
target: "https://127.0.0.1:7002",
target: proxyTarget,
//忽略证书
agent: new https.Agent({ rejectUnauthorized: false }),
},