Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-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
王立鹏
corporateCulture-qd
Commits
84a098a3
Commit
84a098a3
authored
Nov 28, 2025
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 17679】fix: 优化部署等
parent
9d944558
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
deploytest.js
deploy/deploytest.js
+3
-3
App.vue
src/App.vue
+0
-7
regards.ts
src/router/regards.ts
+7
-6
No files found.
deploy/deploytest.js
View file @
84a098a3
...
...
@@ -7,11 +7,11 @@ import path from 'node:path'
const
unzipDirMode
=
{
spawn
:
'pnpm run build:test'
,
// 解压文件名
unzipDir
:
'
oa-test
/'
,
unzipDir
:
'
culture
/'
,
// 终端定位位置 cd
servicePath
:
'/usr/local/nginx/
www/
'
,
servicePath
:
'/usr/local/nginx/'
,
// 压缩包存放位置
serviceFilePath
:
'/usr/local/nginx/
www/
dist.tar.gz'
,
serviceFilePath
:
'/usr/local/nginx/dist.tar.gz'
,
}
const
__dirname
=
path
.
resolve
()
// 文件所在地
...
...
src/App.vue
View file @
84a098a3
<
template
>
<h1>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc1
</h1>
<h1>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc1
</h1>
<h1>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc1
</h1>
<h1>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc1
</h1>
<h1>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc1
</h1>
<h1>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc1
</h1>
<h1>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc1
</h1>
<el-config-provider
:locale=
"locale"
>
<router-view
v-slot=
"
{ Component }">
<component
:is=
"Component"
/>
...
...
src/router/regards.ts
View file @
84a098a3
...
...
@@ -3,19 +3,19 @@ import type { Router } from 'vue-router'
import
{
saveScrollPosition
}
from
'./scrollStorage'
import
{
parseCode
,
parseIsCodeLogin
,
parseIsCutEmail
}
from
'@/utils/wxUtil'
import
{
useUserStore
}
from
'@/stores'
import
{
fa
}
from
'element-plus/es/locales.mjs'
// 白名单
const
WHITE_LIST
:
string
[]
=
[]
const
WHITE_LIST
:
string
[]
=
[
'/aa'
]
export
function
registerRouterGuard
(
router
:
Router
)
{
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
router
.
beforeEach
(
async
(
to
,
from
)
=>
{
// 保存当前页面的滚动位置
if
(
from
.
fullPath
)
{
saveScrollPosition
(
from
.
fullPath
,
window
.
scrollY
)
}
if
(
WHITE_LIST
.
includes
(
to
.
path
))
{
next
()
return
return
true
}
const
code
=
parseCode
()
...
...
@@ -27,10 +27,11 @@ export function registerRouterGuard(router: Router) {
const
userStore
=
useUserStore
()
if
(
code
)
{
console
.
log
(
'code'
,
code
)
await
userStore
.
getUserInfoByCode
(
code
)
return
next
()
return
true
}
else
{
return
next
()
return
true
}
})
}
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