优化
This commit is contained in:
8
client/shared/manager/service.ts
Normal file
8
client/shared/manager/service.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { buildRegFnWithEvent } from './buildReg';
|
||||
|
||||
/**
|
||||
* 获取服务器地址相关逻辑
|
||||
* @default window.location.origin (前后端一体)
|
||||
*/
|
||||
export const [getServiceUrl, setServiceUrl, onServiceUrlChange] =
|
||||
buildRegFnWithEvent<() => string>('serverUrl', () => window.location.origin);
|
||||
Reference in New Issue
Block a user