You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
vite-vue3-lowcode/src/visual-editor/utils/index.ts

19 lines
478 B

/*
* @Author: 卜启缘
* @Date: 2021-06-01 09:45:21
* @LastEditTime: 2021-07-14 09:09:02
* @LastEditors: 卜启缘
* @Description: 公用的工具函数
* @FilePath: \vite-vue3-lowcode\src\visual-editor\utils\index.ts
*/
import { customAlphabet } from 'nanoid'
/**
* @description 部署应用时的基本URL
*/
export const BASE_URL = import.meta.env.BASE_URL
/**
* @description 生成nanoid
*/
export const generateNanoid = customAlphabet('1234567890abcdef', 10)