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
Jan 17, 2019
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mock bug
parent
fb5e771c
Show 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
actiontypes
from
'../actiontype/index'
;
import
mock
from
'../mock/index'
let
domain
=
ENV
.
domain
;
let
domain
=
ENV
.
domain
;
const
initStart
=
()
=>
{
const
initStart
=
()
=>
{
return
{
return
{
type
:
actiontypes
.
INITSTART
,
type
:
actiontypes
.
INITSTART
,
data
:
mock
data
:
{}
}
}
}
}
const
startTask
=
(
data
)
=>
{
const
startTask
=
(
data
)
=>
{
...
...
client/index.js
View file @
c2ff865e
...
@@ -7,7 +7,6 @@ import { createLogger } from 'redux-logger'
...
@@ -7,7 +7,6 @@ import { createLogger } from 'redux-logger'
import
thunkMiddleware
from
'redux-thunk'
;
import
thunkMiddleware
from
'redux-thunk'
;
require
(
'./index.css'
);
require
(
'./index.css'
);
import
PageContainer
from
'./containers/PageContainer/PageContainer'
import
PageContainer
from
'./containers/PageContainer/PageContainer'
import
'./mock/index'
function
activateVendor
()
{
function
activateVendor
()
{
const
logMiddleware
=
createLogger
();
const
logMiddleware
=
createLogger
();
return
createStore
(
return
createStore
(
...
...
client/mock/index.js
View file @
c2ff865e
import
Mock
from
'mockjs'
import
Mock
from
'mockjs'
import
data
from
'./data/TokeStoke.json'
let
data
=
require
(
'./data/TokeStoke.json'
)
Mock
.
mock
(
'/pandian'
,(
req
,
res
)
=>
{
Mock
.
mock
(
'/pandian'
,(
req
,
res
)
=>
{
return
data
return
data
})
})
...
...
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