Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
a24b3b2b
Commit
a24b3b2b
authored
Jul 10, 2026
by
王立鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '线上优化/修改测试地址' into 'master'
线上优化/修改测试地址 See merge request
!34
parents
b4d63c7f
b6a2f55a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
14 deletions
+16
-14
deploytest.js
deploy/deploytest.js
+8
-8
package.json
package.json
+1
-1
index.ts
src/api/common/index.ts
+1
-1
config.ts
src/config.ts
+2
-3
main.ts
src/main.ts
+4
-1
No files found.
deploy/deploytest.js
View file @
a24b3b2b
...
@@ -14,10 +14,10 @@ const deploySlug = getDeploySlug(branchName);
...
@@ -14,10 +14,10 @@ const deploySlug = getDeploySlug(branchName);
const
MAX_DEPLOY_BRANCH_COUNT
=
5
;
const
MAX_DEPLOY_BRANCH_COUNT
=
5
;
const
connectInfo
=
{
const
connectInfo
=
{
host
:
"47.119.149.50"
,
host
:
process
.
env
.
DEPLOY_TEST_HOST
,
port
:
"22"
,
port
:
process
.
env
.
DEPLOY_TEST_PORT
,
username
:
"root"
,
username
:
process
.
env
.
DEPLOY_TEST_USERNAME
,
password
:
"Qdt20250205"
,
password
:
process
.
env
.
DEPLOY_TEST_PASSWORD
,
};
};
const
remoteRootPath
=
"/usr/local/nginx/www/culture"
;
const
remoteRootPath
=
"/usr/local/nginx/www/culture"
;
...
@@ -352,11 +352,11 @@ async function writeIndexHtml(entries) {
...
@@ -352,11 +352,11 @@ async function writeIndexHtml(entries) {
function getAccountCode() {
function getAccountCode() {
const storedValue = window.localStorage.getItem(STORAGE_KEY)
const storedValue = window.localStorage.getItem(STORAGE_KEY)
return storedValue
&& storedValue.trim() ? storedValue.trim() : DEFAULT_ACCOUNT
return storedValue
=== null ? DEFAULT_ACCOUNT : storedValue.trim()
}
}
function setAccountCode(value) {
function setAccountCode(value) {
const finalValue = value
&& value.trim() ? value.trim() : DEFAULT_ACCOUNT
const finalValue = value
.trim()
window.localStorage.setItem(STORAGE_KEY, finalValue)
window.localStorage.setItem(STORAGE_KEY, finalValue)
if (accountInput && accountInput.value !== finalValue) {
if (accountInput && accountInput.value !== finalValue) {
accountInput.value = finalValue
accountInput.value = finalValue
...
@@ -365,8 +365,8 @@ async function writeIndexHtml(entries) {
...
@@ -365,8 +365,8 @@ async function writeIndexHtml(entries) {
}
}
function goToBranch(slug) {
function goToBranch(slug) {
const code =
encodeURIComponent(getAccountCode()
)
const code =
getAccountCode(
)
window.location.href = '/' + slug + '/
?code=' + code + '@yswg.com.cn'
window.location.href = '/' + slug + '/
' + (code ? '?code=' + encodeURIComponent(code) + '@yswg.com.cn' : '')
}
}
if (accountInput) {
if (accountInput) {
...
...
package.json
View file @
a24b3b2b
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"build-only"
:
"vite build"
,
"build-only"
:
"vite build"
,
"build:dev"
:
"nvm use 20 && vite build --mode development"
,
"build:dev"
:
"nvm use 20 && vite build --mode development"
,
"build:test"
:
"nvm use 20 && vite build --mode test"
,
"build:test"
:
"nvm use 20 && vite build --mode test"
,
"deploy:test"
:
"node deploy/deploytest.js"
,
"deploy:test"
:
"node
--env-file=.env.local
deploy/deploytest.js"
,
"build:prod"
:
"nvm use 20 && vite build --mode production"
,
"build:prod"
:
"nvm use 20 && vite build --mode production"
,
"deploy:prod"
:
"node --env-file=.env.local deploy/deployprod.js"
,
"deploy:prod"
:
"node --env-file=.env.local deploy/deployprod.js"
,
"deploy:prod:update-info"
:
"node --env-file=.env.local deploy/deployprod.js --update-info"
"deploy:prod:update-info"
:
"node --env-file=.env.local deploy/deployprod.js --update-info"
...
...
src/api/common/index.ts
View file @
a24b3b2b
...
@@ -26,7 +26,7 @@ export const resolveUploadBaseUrl = () => {
...
@@ -26,7 +26,7 @@ export const resolveUploadBaseUrl = () => {
};
};
const
OA_UPLOAD_COMMON_BASE_URL
=
'http://47.112.96.71:8082'
const
OA_UPLOAD_COMMON_BASE_URL
=
'http://47.112.96.71:8082'
const
CHUNK_UPLOAD_THRESHOLD
=
1
0
*
1024
*
1024
const
CHUNK_UPLOAD_THRESHOLD
=
1
*
1024
*
1024
const
CHUNK_SIZE
=
5
*
1024
*
1024
const
CHUNK_SIZE
=
5
*
1024
*
1024
const
MAX_CONCURRENT_UPLOADS
=
3
const
MAX_CONCURRENT_UPLOADS
=
3
const
CHUNK_API_AUTH_SECRET
=
'4821-7395-1642-8053-2971-5604-9182-4307'
const
CHUNK_API_AUTH_SECRET
=
'4821-7395-1642-8053-2971-5604-9182-4307'
...
...
src/config.ts
View file @
a24b3b2b
...
@@ -17,15 +17,14 @@ export const app_config: { [key: string]: IConfig } = {
...
@@ -17,15 +17,14 @@ export const app_config: { [key: string]: IConfig } = {
// 测试环境 暂时无测试环境部署
// 测试环境 暂时无测试环境部署
test
:
{
test
:
{
// baseUrl: 'http://culture.yswg.com.cn:8089', // 线上测试机
baseUrl
:
'http://47.119.149.50:3459'
,
// 线上测试机
baseUrl
:
'http://192.168.2.55:8089'
,
// 首拥本地
loginType
:
1
,
loginType
:
1
,
wxRedirect
:
''
,
wxRedirect
:
''
,
},
},
// 开发环境
// 开发环境
development
:
{
development
:
{
// baseUrl: 'http://
culture.yswg.com.cn:808
9', // 线上测试机
// baseUrl: 'http://
47.119.149.50:345
9', // 线上测试机
// baseUrl: 'http://192.168.2.168:8089', // 立鹏本地/
// baseUrl: 'http://192.168.2.168:8089', // 立鹏本地/
baseUrl
:
'http://192.168.2.55:8089'
,
// 首拥本地
baseUrl
:
'http://192.168.2.55:8089'
,
// 首拥本地
loginType
:
1
,
loginType
:
1
,
...
...
src/main.ts
View file @
a24b3b2b
...
@@ -40,4 +40,7 @@ app.use(LuckyCanvas)
...
@@ -40,4 +40,7 @@ app.use(LuckyCanvas)
app
.
directive
(
'parse-comment'
,
vParseComment
)
app
.
directive
(
'parse-comment'
,
vParseComment
)
// 全局组件挂载
// 全局组件挂载
app
.
component
(
'SvgIcon'
,
SvgIcon
)
app
.
component
(
'SvgIcon'
,
SvgIcon
)
app
.
mount
(
'#app'
)
router
.
isReady
().
then
(()
=>
{
app
.
mount
(
'#app'
)
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment