Skip to content

Commit

Permalink
fix(erd-onloine): 修改路由信息
Browse files Browse the repository at this point in the history
  • Loading branch information
www.zerocode.net.cn committed Apr 19, 2023
1 parent 8e67ba5 commit 8f1e1b9
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
TAG: 4.0.11
TAG: 4.1.0
steps:
# 步骤名称
- name: checkout code
Expand Down
1 change: 0 additions & 1 deletion config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default defineConfig({
},
headScripts:[
'/js/g6.min.js',
'/js/chatui-icons.js',
'/js/g6-plugins.min.js',
'/js/html2canvas.min.js',
'/env-config.js?date='+ new Date(),
Expand Down
2 changes: 1 addition & 1 deletion config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
},
{
path: '/',
redirect: '/project/home',
redirect: '/login',
},
{path: '/*', component: './404',},
{
Expand Down
2 changes: 1 addition & 1 deletion env-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
window._env_ = {
API_URL: "http://localhost:9502",
API_URL: "https://erd.zerocode.net.cn",
}
2 changes: 1 addition & 1 deletion public/env-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
window._env_ = {
API_URL: "http://localhost:9502",
API_URL: "https://erd.zerocode.net.cn",
}
26 changes: 0 additions & 26 deletions public/js/chatui-icons.js

This file was deleted.

5 changes: 3 additions & 2 deletions src/pages/design/chatsql/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {ProCard} from "@ant-design/pro-components";
import _ from "lodash";
import {POST} from "@/services/crud";
import copy from 'copy-to-clipboard';
import {FloatButton, List, message, Typography} from "antd";
import {FloatButton, List, Typography} from "antd";
import useProjectStore from "@/store/project/useProjectStore";
import shallow from "zustand/shallow";
import {uuid} from "@/utils/uuid";
Expand Down Expand Up @@ -272,6 +272,7 @@ const ChatSQL: React.FC<ChatSQLProps> = (props) => {
toast.fail('最多只能同时分析5张表!');
return;
}
// @ts-ignore
setSelectedTable([...selectedTable, aiKey]);
toast.success('加入成功');
} else {
Expand Down Expand Up @@ -351,4 +352,4 @@ const ChatSQL: React.FC<ChatSQLProps> = (props) => {
);
};

export default React.memo(ChatSQL)
export default ChatSQL
1 change: 0 additions & 1 deletion src/pages/document.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
/>
<title>ERD Online</title>
<link rel="icon" href="<%= context.config.publicPath + 'favicon.ico' %>" type="image/x-icon"/>
<script src="<%= context.config.publicPath + 'js/chatui-icons.js' %>"></script>
<script src="<%= context.config.publicPath + 'js/g6.min.js' %>"></script>
<script src="<%= context.config.publicPath + 'js/g6-plugins.min.js' %>"></script>
<script src="<%= context.config.publicPath + 'js/html2canvas.min.js' %>"></script>
Expand Down

0 comments on commit 8f1e1b9

Please sign in to comment.