* perf: check balance * md * lock way * i18n * docs * doc * i18n * update doc * feat: one link sync * feat: one link sync * feat: one link sync * feat: one link sync * feat: one link sync * feat: one link sync * feat: one link sync
8 lines
226 B
TypeScript
8 lines
226 B
TypeScript
import { feConfigs } from './staticData';
|
|
|
|
export const getDocPath = (path: string) => {
|
|
if (!feConfigs?.docUrl) return '';
|
|
if (feConfigs.docUrl.endsWith('/')) return feConfigs.docUrl;
|
|
return feConfigs.docUrl + path;
|
|
};
|