mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-13 01:23:41 +08:00
增加了一个超链聊天跳转
在“运营设置里面”增加了“聊天页面2链接”,方便将项目(https://github.com/Dooy/chatgpt-web-midjourney-proxy) 替换掉原来的AMA问天。 Changes to be committed: modified: common/constants.go modified: controller/misc.go modified: model/option.go modified: web/src/App.js modified: web/src/components/OperationSetting.js modified: web/src/components/TokensTable.js
This commit is contained in:
@@ -57,6 +57,11 @@ function App() {
|
||||
} else {
|
||||
localStorage.removeItem('chat_link');
|
||||
}
|
||||
if (data.chat_link2) {
|
||||
localStorage.setItem('chat_link2', data.chat_link2);
|
||||
} else {
|
||||
localStorage.removeItem('chat_link2');
|
||||
}
|
||||
// if (
|
||||
// data.version !== process.env.REACT_APP_VERSION &&
|
||||
// data.version !== 'v0.0.0' &&
|
||||
|
||||
Reference in New Issue
Block a user