Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
c2ff865e
Commit
c2ff865e
authored
6 years ago
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mock bug
parent
fb5e771c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
client/actions/index.js
+1
-2
client/index.js
+0
-1
client/mock/index.js
+1
-1
No files found.
client/actions/index.js
View file @
c2ff865e
import
actiontypes
from
'../actiontype/index'
;
import
mock
from
'../mock/index'
let
domain
=
ENV
.
domain
;
const
initStart
=
()
=>
{
return
{
type
:
actiontypes
.
INITSTART
,
data
:
mock
data
:
{}
}
}
const
startTask
=
(
data
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
client/index.js
View file @
c2ff865e
...
...
@@ -7,7 +7,6 @@ import { createLogger } from 'redux-logger'
import
thunkMiddleware
from
'redux-thunk'
;
require
(
'./index.css'
);
import
PageContainer
from
'./containers/PageContainer/PageContainer'
import
'./mock/index'
function
activateVendor
()
{
const
logMiddleware
=
createLogger
();
return
createStore
(
...
...
This diff is collapsed.
Click to expand it.
client/mock/index.js
View file @
c2ff865e
import
Mock
from
'mockjs'
import
data
from
'./data/TokeStoke.json'
let
data
=
require
(
'./data/TokeStoke.json'
)
Mock
.
mock
(
'/pandian'
,(
req
,
res
)
=>
{
return
data
})
...
...
This diff is collapsed.
Click to expand it.
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