Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
be89fdb8
Commit
be89fdb8
authored
Dec 11, 2023
by
wuwangwolihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地2.0
parent
f4f77e76
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
16 deletions
+14
-16
src/components/Header.vue
src/components/Header.vue
+2
-2
src/config/server.js
src/config/server.js
+6
-6
src/router/base/home.js
src/router/base/home.js
+1
-1
src/router/index.js
src/router/index.js
+5
-7
No files found.
src/components/Header.vue
View file @
be89fdb8
...
...
@@ -12,7 +12,7 @@
<el-menu
:default-active=
"$store.state.activeIndex"
@
select=
"handleSelect"
mode=
"horizontal"
>
<el-menu-item
index=
"/
home
"
>
首页
</el-menu-item>
<el-menu-item
index=
"/"
>
首页
</el-menu-item>
<el-menu-item
index=
"/active"
>
活动中心
</el-menu-item>
</el-menu>
<el-button
v-if=
"type==2"
@
click=
"toSignUp"
class=
"sign-up"
>
立即报名
</el-button>
...
...
@@ -183,7 +183,7 @@
}
if
(
this
.
type
==
4
)
{
if
(
previousPath
&&
(
previousPath
==
'
/
home
'
||
(
previousPath
==
'
/
'
||
previousPath
==
'
/active
'
||
previousPath
.
indexOf
(
'
/active/
'
)
!=
-
1
))
{
await
this
.
$router
.
replace
({
...
...
src/config/server.js
View file @
be89fdb8
...
...
@@ -17,14 +17,14 @@
// export const SERVER_WS_URL = "wss://apiy.thuers.com"; // websocket
// 测试
export
const
SERVER_URL
=
"
https://tgwapi.campcenter.cn/modules-campsite
"
;
// 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://tgwapi.campcenter.cn/modules-campsite
"
;
//开发环境
export
const
SERVER_WS_URL
=
"
wss://tgwapi.campcenter.cn
"
;
// websocket
//
export const SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; // 正式环境
//
export const DEVELOPMENT_SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; //开发环境
//
export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
// 正式
//
export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
//
export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
//
export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
export
const
SERVER_URL
=
"
https://gwapi.campcenter.cn/modules-campsite
"
;
// 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://gwapi.campcenter.cn/modules-campsite
"
;
//开发环境
export
const
SERVER_WS_URL
=
"
wss://gwapi.campcenter.cn
"
;
// websocket
// 测试
// export const SERVER_URL = "http:// 8088/modules-campsite"; // 正式环境
...
...
src/router/base/home.js
View file @
be89fdb8
export
default
[
{
path
:
'
/
home
'
,
path
:
'
/
'
,
name
:
'
base-home
'
,
component
:
()
=>
import
(
/* webpackChunkName: "login" */
'
v/base/home/Home.vue
'
),
meta
:
{
...
...
src/router/index.js
View file @
be89fdb8
...
...
@@ -25,7 +25,6 @@ const routes = [
meta
:
{
title
:
''
},
redirect
:
'
/home
'
,
component
:
()
=>
import
(
'
v/base/Index.vue
'
),
children
:
[...
indexHome
,
...
indexActive
]
},
...
...
@@ -197,11 +196,10 @@ function checkCam(code, cb) {
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
from
)
if
(
from
.
path
!=
'
/
'
&&
from
.
path
!=
'
/baseLogin
'
&&
if
(
!
(
from
.
path
==
'
/
'
&&
from
.
name
==
null
)
&&
(
from
.
path
!=
'
/baseLogin
'
&&
from
.
path
!=
'
/baseRegister
'
&&
from
.
path
!=
'
/baseReset
'
)
{
from
.
path
!=
'
/baseReset
'
)
)
{
store
.
commit
(
'
setPreviousPath
'
,
from
.
path
);
}
if
(
to
.
query
&&
to
.
query
.
disCode
)
{
...
...
@@ -214,7 +212,7 @@ router.beforeEach((to, from, next) => {
toBaseLogin
=
"
/baseLogin
"
,
toBaseRegister
=
"
/baseRegister
"
,
toBaseReset
=
"
/baseReset
"
,
toHome
=
"
/
home
"
,
toHome
=
"
/
"
,
toActive
=
"
/active
"
,
toInfo
=
"
/myInfo
"
;
let
code
=
false
;
...
...
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