mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
4 years ago
|
import { buildRegFnWithEvent } from './buildRegFn';
|
||
4 years ago
|
|
||
|
/**
|
||
|
* 获取服务器地址相关逻辑
|
||
3 years ago
|
* @default http://127.0.0.1:11000
|
||
4 years ago
|
*/
|
||
4 years ago
|
export const [getServiceUrl, setServiceUrl, onServiceUrlChange] =
|
||
|
buildRegFnWithEvent<() => string>(
|
||
|
'serverUrl',
|
||
|
() => 'http://127.0.0.1:11000'
|
||
|
);
|