Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
testspark0608
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
testspark0608
Commits
5742513e
Commit
5742513e
authored
Jun 08, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
52d1468d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
index.html
project/public/index.html
+1
-1
app.jsx
project/src/app.jsx
+2
-1
start.jsx
project/src/components/start/start.jsx
+1
-1
No files found.
project/public/index.html
View file @
5742513e
...
...
@@ -30,7 +30,7 @@
CFG
.
appID
=
'${APPID}'
;
if
(
!
getUrlParam
(
"appID"
))
{
alert
(
"【警告】检测到活动url中没有appID参数
\n
缺少该参数会导致埋点、分享、app信息获取错误。"
)
//
alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
</head>
...
...
project/src/app.jsx
View file @
5742513e
...
...
@@ -3,6 +3,7 @@ import ReactDOM from "react-dom";
import
"./app.less"
;
import
Modal
from
'./modal/modal'
;
import
MD
from
'../MD'
;
import
Start
from
'./components/start/start.jsx'
MD
();
//此处为spark-cli动态生成
...
...
@@ -11,7 +12,7 @@ class App extends Component {
render
()
{
return
(
<
div
>
<
div
>
请在app.jsx中指定首页
</
div
>
<
Start
>
请在app.jsx中指定首页
</
Start
>
<
Modal
/>
</
div
>
);
...
...
project/src/components/start/start.jsx
View file @
5742513e
...
...
@@ -4,7 +4,7 @@ import React, { Component } from 'react';
import
{
RES_PATH
}
from
'../../../sparkrc.js'
;
import
'./start.less'
;
@
observer
class
Start
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
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