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>(
|
export const [getServiceUrl, setServiceUrl, onServiceUrlChange] =
|
||||||
'serverUrl',
|
buildRegFnWithEvent<() => string>(
|
||||||
() => 'http://127.0.0.1:11000'
|
'serverUrl',
|
||||||
);
|
() => 'http://127.0.0.1:11000'
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue