Skip to content

Commit

Permalink
fixxx
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzuzhou committed May 9, 2024
1 parent d432f92 commit 365b85b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</head>
<body>
<div id="app">
<a href="./public/test.jpg" download>下载图片</a>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
Expand Down
14 changes: 1 addition & 13 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@ import { setupCounter } from './counter.ts'

document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="../public/vite.svg" class="logo" alt="Vite logo" />
</a>
<a href="https://www.typescriptlang.org/" target="_blank">
<img src="./typescript.svg" class="logo vanilla" alt="TypeScript logo" />
</a>
<h1>Vite + TypeScript</h1>
<div class="card">
<button id="counter" type="button"></button>
</div>
<p class="read-the-docs">
Click on the Vite and TypeScript logos to learn more
</p>
<a href="../public/test.jpg" download>下载图片</a>
</div>
`

Expand Down

0 comments on commit 365b85b

Please sign in to comment.