Skip to content

Commit

Permalink
fix: 修复首页不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Selflocking committed Jan 23, 2024
1 parent 19915e8 commit ce867e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/backend/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ def load(key: str, default: Any = None) -> Any:
HOST = load("HOST", "0.0.0.0")
# 监听端口
PORT = load("PORT", 8080)

logging.error(OPENAI_API_HOST)
4 changes: 3 additions & 1 deletion web/src/components/JobList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ export default function JobList(prop) {
React.useEffect(() => {
const c = searchParams.get("city");
console.log(c);
let rc = city;
if (c != "" && c != null) {
setCity(c);
rc = c;
}

setSpinning(true);
api.getJobs(c).then((data) => {
api.getJobs(rc).then((data) => {
let counter = 1;
data.map((item) => {
item.key = counter++;
Expand Down

0 comments on commit ce867e1

Please sign in to comment.