Skip to content

Commit

Permalink
chore: 调整文件结构,使用别名
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivocin committed Feb 25, 2021
1 parent 999b236 commit 279e144
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion vite-react/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="src/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="src/assets/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion vite-react/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";
import Layout from "./Layout";
import App from "./App";
import App from "~/pages/App/App";
import "antd/dist/antd.less";

export default function Index() {
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions vite-react/src/App.jsx → vite-react/src/pages/App/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import { DatePicker, Menu } from "antd";
import logo from "./logo.svg";
import { DatePicker, Button } from "antd";
import logo from "~/assets/logo.svg";
import "./App.css";

function App() {
Expand All @@ -13,9 +13,9 @@ function App() {
<DatePicker />
<p>Hello Vite + React!</p>
<p>
<button onClick={() => setCount((count) => count + 1)}>
<Button onClick={() => setCount((count) => count + 1)}>
count is: {count}
</button>
</Button>
</p>
<p>
<a
Expand Down

0 comments on commit 279e144

Please sign in to comment.