Skip to content

Commit

Permalink
🐛 fix: 修复路径问题
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzyFade committed Feb 10, 2021
1 parent 1ebc1f3 commit 654099f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/join/joinpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { Link, useHistory } from "react-router-dom";
import { joinRoom, listenAddBroadcast, listenJoin, removeSocket } from "@/lib/ws";
import { useLogin } from "@/pages/login/store";
import { useRoom } from "@pages/room/store";
import { useRoom } from "@/pages/room/store";

function JoinPage() {
const [roomName, setRoomName] = useState("");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/new/newpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import { useHistory } from "react-router-dom";
import { listenJoin, joinRoom, removeSocket } from "@/lib/ws";
import { useLogin } from "@/pages/login/store";
import { useRoom } from "@pages/room/store";
import { useRoom } from "@/pages/room/store";

import SelectPage from "./components/select";
import CreatePage from "./components/create";
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"baseUrl": "./",
/* paths - If you configure Snowpack import aliases, add them here. */
"paths": {
"@*": ["src/*"]
"@/*": ["src/*"]
},
/* noEmit - Snowpack builds (emits) files, not tsc. */
"noEmit": true,
Expand Down

0 comments on commit 654099f

Please sign in to comment.