remove unused
This commit is contained in:
1 parent
301dab1ca5
commit
ea1c3413a5
88 files changed
+29
-5766
No files matched your search
+16
-1
@@ -8,7 +8,7 @@ import { getEnv } from './env';
|
||||
export const getDataBaseUrl = () => {
|
||||
const env = getEnv();
|
||||
if (env === ENV_LOCAL) {
|
||||
return 'https://chat.local.zhishuyun.com';
|
||||
return 'https://data.local.zhishuyun.com';
|
||||
} else if (env === ENV_TEST) {
|
||||
return 'https://data.test.zhishuyun.com';
|
||||
} else {
|
||||
@@ -16,6 +16,21 @@ export const getDataBaseUrl = () => {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Get base url of app
|
||||
* @returns
|
||||
*/
|
||||
export const getChatBaseUrl = () => {
|
||||
const env = getEnv();
|
||||
if (env === ENV_LOCAL) {
|
||||
return 'https://chat.local.zhishuyun.com';
|
||||
} else if (env === ENV_TEST) {
|
||||
return 'https://chat.test.zhishuyun.com';
|
||||
} else {
|
||||
return 'https://chat.zhishuyun.com';
|
||||
}
|
||||
};
|
||||
|
||||
export const getAuthBaseUrl = () => {
|
||||
const env = getEnv();
|
||||
if (env === ENV_LOCAL) {
|
||||
|
||||
Reference in new issue
Block a user