Skip to content

Commit

Permalink
Merge pull request #4 from uyarn/chore/tdesign-style
Browse files Browse the repository at this point in the history
chore: fix tdesign style usage
  • Loading branch information
KevinZonda authored Jan 10, 2024
2 parents 13125a2 + e61971b commit fe11a91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ float32.app 使用 promptc 标准来实践 prompt 开发的解耦。请参阅 [p
## 前端
> [!CAUTION]
> 前端需要先运行 `tdesign.sh` 否则会丢失样式。
前端使用 pnpm + React + Vite + MobX + TDesign 的结构。请使用以下命令以启动开发服务器:
```bash
Expand Down
4 changes: 2 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>float32: 优雅地探寻未知</title>
<link rel="stylesheet" href="/tdesign.min.css" />
<script src="/tdesign.min.js"></script>
<!--<link rel="stylesheet" href="/tdesign.min.css" />-->
<!--<script src="/tdesign.min.js"></script>-->
<link rel="manifest" href="/manifest.json" />
<link rel="icon" type="image/png" href="/images/logo-circle.png" />
</head>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import {App} from "./App.tsx";
import {createBrowserRouter, RouterProvider} from "react-router-dom";
import {About} from "./About.tsx";

import 'tdesign-react/es/style/index.css'; // 少量公共样式
import './index.css'

const router = createBrowserRouter([
{
path: "/about",
Expand Down
7 changes: 0 additions & 7 deletions frontend/tdesign.sh

This file was deleted.

0 comments on commit fe11a91

Please sign in to comment.