Commit af209d66 authored by haiyoucuv's avatar haiyoucuv

21

parent 2a7a9952
......@@ -114,15 +114,17 @@ class GamePage extends React.Component<any, any> {
const {} = store.indexData;
const { levelIndex, levelIdxArr } = gameStore.gameInfo;
const titleSrc = new URL(
`../../assets/GamePage/title/title${(levelIndex + 1) || 1}.png?x-oss-process=image/format,webp`,
import.meta.url
).href;
return <div className={styles.root} ref={(el) => this.gameDiv = el}>
<canvas className={styles.gameCanvas} ref={(el) => this.gameCanvas = el}/>
<div className={styles.cd}>180s</div>
<img
src={new URL(`../../assets/GamePage/title/title${(levelIndex + 1) || 1}.png?x-oss-process=image/format,webp`, import.meta.url).href}
className={styles.title}
/>
<img src={titleSrc} className={styles.title}/>
<Button className={styles.tipBtn} onClick={this.clickTip}/>
<Button className={styles.backBtn} onClick={this.clickBack}/>
</div>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment