Skip to content

Commit

Permalink
更新github打包配置
Browse files Browse the repository at this point in the history
  • Loading branch information
kongyijilafumi committed Mar 30, 2022
1 parent 4f3fc96 commit 65512bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env-cmdrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ module.exports = Promise.resolve({
COLOR: "true",
REACT_APP_API_BASEURL: "https://azhengpersonalblog.top/api/react-ant-admin",
REACT_APP_ROUTER_ISHASH: "1", // 启用哈希模式
REACT_APP_ROUTERBASE: "/"
}
})
2 changes: 1 addition & 1 deletion src/pages/details/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function Person() {
cover={
<img
alt="example"
src="https://portrait.gitee.com/uploads/avatars/user/1887/5661033_kong_yiji_and_lavmi_1586497494.png!avatar200"
src="https://avatars.githubusercontent.com/u/56569970?v=4"
/>
}
>
Expand Down
2 changes: 1 addition & 1 deletion src/router/appRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { connect } from "react-redux";
import { setUserInfoAction } from "@/store/user/action";
import { getLocalUser } from "@/utils";

const Router = process.env.REACT_APP_API_BASEURL === "1" ? HashRouter : BrowserRouter
const Router = process.env.REACT_APP_ROUTER_ISHASH === "1" ? HashRouter : BrowserRouter
const RouterBasename = process.env.REACT_APP_ROUTERBASE || "/"
const mapStateToProps = (state) => ({
userInfo: state.user,
Expand Down

0 comments on commit 65512bc

Please sign in to comment.