drop console

This commit is contained in:
ray_wuhao 2023-01-27 20:00:58 +08:00
parent 998861f36e
commit 93aca4cf6b
2 changed files with 4 additions and 3 deletions

View File

@ -42,8 +42,6 @@ export const permissionRouter = () => {
router.beforeEach((to, from, next) => {
const token = getCache('token')
const route = getCache('menuKey')
console.log('route', route)
console.log('token', token)
if (token !== 'no') {
if (to.path === '/' || from.path === '/login') {

View File

@ -164,6 +164,9 @@ export const buildOptions = (mode: string): BuildOptions => {
/**
*
* @param options
*
* @remark console debugger , console ,
* @remark console , 使
*/
export const useViteBuildPlugin = (options?: BuildOptions) => {
const defaultPlugin: BuildOptions = {
@ -171,7 +174,7 @@ export const useViteBuildPlugin = (options?: BuildOptions) => {
assetsDir: 'assets', // 指定静态资源存放路径
assetsInlineLimit: 4096, // 小于这个数字(字节)的静态资产文件将被内联为(base64)
cssCodeSplit: true, // 拆分css代码
minify: 'esbuild', // 指定使用混淆器(terser|esbuild)
minify: 'esbuild', // 指定使用混淆器 (terser | esbuild)
sourcemap: false,
terserOptions: {
compress: {