File tree Expand file tree Collapse file tree 7 files changed +14
-16
lines changed Expand file tree Collapse file tree 7 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 1
- < div class ="app-container " id ="example "> 正在载入中...</ div >
1
+ < div class ="app-container " id ="example "> 正在载入中...loading </ div >
2
2
< script src ="./dist/js/main.js "> </ script >
3
- <!-- Global Site Tag (gtag.js) - Google Analytics -->
4
- < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-73786601-3 "> </ script >
5
- < script >
6
- window . dataLayer = window . dataLayer || [ ] ;
7
- function gtag ( ) { dataLayer . push ( arguments ) } ;
8
- gtag ( 'js' , new Date ( ) )
9
-
10
- gtag ( 'config' , 'UA-73786601-3' ) ;
11
- </ script >
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ function shouldFetchIssues(state) {
24
24
return ! state . items . length ;
25
25
}
26
26
27
- export function fetchIssuesIfNeeded ( ) {
27
+ export default function fetchIssuesIfNeeded ( ) {
28
+ // function fetchIssuesIfNeeded() {
28
29
return ( dispatch , getState ) => {
29
30
if ( shouldFetchIssues ( getState ( ) ) ) {
30
31
return dispatch ( fetchIssues ( ) ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import { Row , Col } from 'antd' ;
4
4
import { connect } from 'react-redux' ;
5
- import { fetchIssuesIfNeeded } from '../../actions/index' ;
5
+ // import { fetchIssuesIfNeeded } from '../../actions/index';
6
+ import fetchIssuesIfNeeded from '../../actions/index' ;
6
7
import ArchiveList from './archivelist' ;
7
8
import YearCard from './yearcard' ;
8
9
import '../../../css/archive/archive.css' ;
Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ export default class Navigation extends React.Component {
16
16
const menu = [ ] ;
17
17
const patt = / ( # + ) \s + ?( .+ ) / g;
18
18
let result = null ;
19
- while ( ( result = patt . exec ( issues ) ) ) {
19
+ result = patt . exec ( issues ) ;
20
+ while ( result ) {
20
21
menu . push ( { level : result [ 1 ] . length , title : result [ 2 ] } ) ;
22
+ result = patt . exec ( issues ) ;
21
23
}
22
24
const menuObj = [ ] ;
23
25
let level2Temp = null ;
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import { Row , Col } from 'antd' ;
4
4
import { connect } from 'react-redux' ;
5
- import { fetchIssuesIfNeeded } from '../../actions/index' ;
5
+ // import { fetchIssuesIfNeeded } from '../../actions/index';
6
+ import fetchIssuesIfNeeded from '../../actions/index' ;
6
7
import ArticleArea from './articlearea' ;
7
8
import RightSider from './rightsider' ;
8
9
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import { Row , Col } from 'antd' ;
4
4
import { connect } from 'react-redux' ;
5
- import { fetchIssuesIfNeeded } from '../../actions/index' ;
5
+ // import { fetchIssuesIfNeeded } from '../../actions/index';
6
+ import fetchIssuesIfNeeded from '../../actions/index' ;
6
7
import ArticleList from './articlelist' ;
7
8
import CategoryCard from './categorycard' ;
8
9
import '../../../css/archive/archive.css' ;
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import { Row , Col } from 'antd' ;
4
4
import { connect } from 'react-redux' ;
5
- import { fetchIssuesIfNeeded } from '../../actions/index' ;
5
+ // import { fetchIssuesIfNeeded } from '../../actions/index';
6
+ import fetchIssuesIfNeeded from '../../actions/index' ;
6
7
import ArticleList from './articlelist' ;
7
8
import TagCard from './tagcard' ;
8
9
import '../../../css/archive/archive.css' ;
You can’t perform that action at this time.
0 commit comments