Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
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
吴迪
gs1
Commits
c363dbdc
Commit
c363dbdc
authored
Dec 12, 2023
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击量添加
parent
ba7cd2b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
api.js
src/axios/api.js
+9
-0
main.js
src/main.js
+6
-2
index.js
src/router/index.js
+18
-0
No files found.
src/axios/api.js
View file @
c363dbdc
...
...
@@ -20,6 +20,14 @@ const homeGetUrl = (params = {}) => {
return
GET
(
`
${
Prefix2
}
/office/domain/api/list`
,
params
)
}
// 获取点击量
const
websitehitcountdetail
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix2
}
/office/websitehitcountdetail/api/save`
,
params
)
}
import
home
from
"./module/home.js"
...
...
@@ -49,6 +57,7 @@ const api = {
barcode
,
sell
,
pgp
,
websitehitcountdetail
,
}
export
default
api
src/main.js
View file @
c363dbdc
...
...
@@ -43,7 +43,7 @@ import api from "./axios/index";
Vue
.
use
(
api
);
Vue
.
component
(
GsTable
.
name
,
GsTable
)
import
axios
from
"axios"
// 过滤器封装
import
filters
from
"./filters/index"
;
...
...
@@ -84,8 +84,12 @@ import moment from 'moment';
Vue
.
prototype
.
$moment
=
moment
;
Vue
.
config
.
productionTip
=
false
;
const
Prefix
=
process
.
env
.
NODE_ENV
===
'development'
?
'/gs1'
:
''
;
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
axios
.
post
(
Prefix
+
"/office/websitehitcountdetail/api/save"
,
{
route
:
to
.
fullPath
}).
then
(
res
=>
{
})
NProgress
.
start
();
const
whiteList
=
[
"/404"
];
if
(
...
...
src/router/index.js
View file @
c363dbdc
...
...
@@ -29,11 +29,17 @@ const routes = [
children
:
[{
path
:
"/"
,
name
:
"Home"
,
meta
:
{
name
:
"首页"
,
},
component
:
()
=>
import
(
"@/views/Home/index"
),
},
{
path
:
"/home/sousuo"
,
name
:
"sousuo"
,
meta
:
{
name
:
"搜索"
,
},
component
:
()
=>
import
(
"@/views/Home/sousuo"
),
},
{
...
...
@@ -1281,6 +1287,9 @@ const routes = [
{
path
:
"/djwhIndex/djwhlist"
,
name
:
"djwhlist"
,
meta
:
{
name
:
"党建文化"
,
},
component
:
()
=>
import
(
"@/views/Djwh/djwhlist"
),
},
...
...
@@ -1504,6 +1513,9 @@ const routes = [
{
path
:
"/djwhIndex"
,
name
:
"djwhIndex"
,
meta
:
{
name
:
"党建文化"
,
},
component
:
()
=>
import
(
"@/views/Djwh/index"
),
},
...
...
@@ -1525,11 +1537,17 @@ const routes = [
{
path
:
"/login"
,
name
:
"login"
,
meta
:
{
name
:
"登录"
,
},
component
:
()
=>
import
(
"@/views/User/index"
),
},
{
path
:
"/register"
,
name
:
"register"
,
meta
:
{
name
:
"注册"
,
},
component
:
()
=>
import
(
"@/views/User/index"
),
},
{
...
...
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