Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
盖剑秋
9 years ago
Commit
c4163ba079bd2363292176db99c96c206a3a6234
1 parent
96012f0a
delete useless log. reviewed by redding.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
js/community/reducers/posting/postingActions.js
js/community/reducers/posting/postingActions.js
View file @
c4163ba
...
...
@@ -43,10 +43,8 @@ export function voidImplementationFunc() {
export
function
startEditPost
(
postingState
)
{
return
dispatch
=>
{
console
.
log
(
'lalala'
);
dispatch
(
voidImplementationFunc
());
dispatch
(()
=>
{
console
.
log
(
'nononononon'
);
if
(
postingState
)
{
Alert
.
alert
(
'抱歉'
,
'您有正在发送的帖子,请耐心等待~'
);
}
else
{
...
...
@@ -90,8 +88,6 @@ export function mergeCachedPosting() {
return
dispatch
=>
{
store
.
get
(
POSTING_CACHE_KEY
)
.
then
((
cachedObj
)
=>
{
console
.
log
(
'2222222222222222222222222'
);
console
.
log
(
cachedObj
);
if
(
cachedObj
)
{
dispatch
(
commitMerge
(
cachedObj
));
dispatch
(
startPosting
(
cachedObj
.
assets
));
...
...
@@ -231,11 +227,7 @@ export function startPosting(assets) {
storedState
.
boards
=
[];
storedState
.
postingBannerShow
=
true
;
store
.
save
(
POSTING_CACHE_KEY
,
storedState
).
then
(()
=>
{
console
.
log
(
'00000000000000000000000000'
);
console
.
log
(
storedState
);
store
.
get
(
POSTING_CACHE_KEY
).
then
((
data
)
=>
{
console
.
log
(
'11111111111111111111'
);
console
.
log
(
data
);
})
if
(
assets
.
length
)
{
for
(
let
i
=
0
;
i
<
assets
.
length
;
i
++
)
{
...
...
@@ -245,11 +237,8 @@ export function startPosting(assets) {
}
new
PostingService
().
uploadImageAsset
(
asset
)
.
then
(
response
=>
{
console
.
log
(
response
);
dispatch
(
updateUploadState
(
response
,
asset
.
name
));
}).
catch
(
error
=>
{
console
.
log
(
error
);
dispatch
(
postFail
());
});
}
...
...
Please
register
or
login
to post a comment