mirror of https://github.com/msgbyte/tailchat
parent
6fddae2133
commit
3556d28832
@ -1,9 +1,10 @@
|
||||
import { buildRegFn } from './buildRegFn';
|
||||
import { buildRegFnWithEvent } from './buildRegFn';
|
||||
|
||||
/**
|
||||
* 获取服务器地址相关逻辑
|
||||
*/
|
||||
export const [getServiceUrl, setServiceUrl] = buildRegFn<() => string>(
|
||||
'serverUrl',
|
||||
() => 'http://127.0.0.1:11000'
|
||||
);
|
||||
export const [getServiceUrl, setServiceUrl, onServiceUrlChange] =
|
||||
buildRegFnWithEvent<() => string>(
|
||||
'serverUrl',
|
||||
() => 'http://127.0.0.1:11000'
|
||||
);
|
||||
|
Loading…
Reference in New Issue