mirror of
https://github.com/certd/certd.git
synced 2026-04-29 00:28:11 +08:00
Merge branch 'v2-dev' of https://github.com/certd/certd into v2-dev
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
#登录与权限开启
|
||||||
|
VITE_APP_PM_ENABLED=false
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
"dev": "vite --open",
|
"dev": "vite --open",
|
||||||
"dev:pm": "vite --mode pm",
|
"dev:pm": "vite --mode pm",
|
||||||
"dev:force": "vite --force",
|
"dev:force": "vite --force",
|
||||||
|
"remote": "vite --mode remote --open",
|
||||||
"debug": "vite --mode debug --open",
|
"debug": "vite --mode debug --open",
|
||||||
"debug:pm": "vite --mode debugpm",
|
"debug:pm": "vite --mode debugpm",
|
||||||
"debug:force": "vite --force --mode debug",
|
"debug:force": "vite --force --mode debug",
|
||||||
|
|||||||
@@ -193,7 +193,6 @@ async function loadLatestVersion() {
|
|||||||
|
|
||||||
const minVersion = settingsStore.productInfo?.app?.minVersion;
|
const minVersion = settingsStore.productInfo?.app?.minVersion;
|
||||||
if (minVersion) {
|
if (minVersion) {
|
||||||
debugger;
|
|
||||||
if (isNewVersion(version.value, minVersion)) {
|
if (isNewVersion(version.value, minVersion)) {
|
||||||
notification.error({
|
notification.error({
|
||||||
message: settingsStore.productInfo?.app?.minVersionTip ?? "版本过低,为了您的数据安全,请尽快升级",
|
message: settingsStore.productInfo?.app?.minVersionTip ?? "版本过低,为了您的数据安全,请尽快升级",
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ export default ({ command, mode }) => {
|
|||||||
// if (mode.startsWith("dev")) {
|
// if (mode.startsWith("dev")) {
|
||||||
// base = "./";
|
// base = "./";
|
||||||
// }
|
// }
|
||||||
|
let proxyTarget: string = "https://127.0.0.1:7002";
|
||||||
|
if (mode === "remote") {
|
||||||
|
proxyTarget = "https://yfy.docmirror.cn:7002";
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
base: base,
|
base: base,
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -82,14 +86,14 @@ export default ({ command, mode }) => {
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
port: 3008,
|
port: 13008,
|
||||||
fs: devServerFs,
|
fs: devServerFs,
|
||||||
allowedHosts: ["localhost", "127.0.0.1", "yfy.docmirror.cn"],
|
allowedHosts: ["localhost", "127.0.0.1", "yfy.docmirror.cn"],
|
||||||
proxy: {
|
proxy: {
|
||||||
// with options
|
// with options
|
||||||
"/api": {
|
"/api": {
|
||||||
//配套后端 https://github.com/fast-crud/fs-server-js
|
//配套后端 https://github.com/fast-crud/fs-server-js
|
||||||
target: "https://127.0.0.1:7002",
|
target: proxyTarget,
|
||||||
//忽略证书
|
//忽略证书
|
||||||
agent: new https.Agent({ rejectUnauthorized: false }),
|
agent: new https.Agent({ rejectUnauthorized: false }),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user