mirror of https://github.com/msgbyte/tailchat
refactor(share): 更新获取服务器地址相关策略
parent
5698ab88a1
commit
b0a7465238
@ -0,0 +1,9 @@
|
|||||||
|
import { buildRegFn } from './buildRegFn';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取服务器地址相关逻辑
|
||||||
|
*/
|
||||||
|
export const [getServerUrl, setServerUrl] = buildRegFn<() => string>(
|
||||||
|
'serverUrl',
|
||||||
|
() => 'http://127.0.0.1:11000'
|
||||||
|
);
|
Loading…
Reference in New Issue