mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 06:12:44 +08:00
style
This commit is contained in:
parent
890233e854
commit
8b7c9068de
@ -1,24 +1,20 @@
|
||||
<script lang="ts" setup>
|
||||
import BasicButton from '@/components/BasicButton/index.vue';
|
||||
import AppProvider from '@/components/AppProvider/inedx.vue';
|
||||
import { useRoute, useRouter } from '@/hooks/router';
|
||||
import { useRouter } from '@/hooks/router';
|
||||
|
||||
const router = useRouter();
|
||||
const jumpList1 = () => {
|
||||
router.push('/pagesA/list/test1/index?key=words&page=1&limit=15');
|
||||
};
|
||||
|
||||
const route = useRoute();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AppProvider>
|
||||
<view class="container"> 页面构建中...54264536 </view>
|
||||
<view class="flex-row">
|
||||
<view>item1</view>
|
||||
<view>item2</view>
|
||||
<view class="container"> 页面构建中... </view>
|
||||
<view class="flex-row justify-center">
|
||||
<BasicButton @click="jumpList1">List1 → </BasicButton>
|
||||
</view>
|
||||
<BasicButton @click="jumpList1">List1 → </BasicButton>
|
||||
</AppProvider>
|
||||
</template>
|
||||
|
||||
|
@ -3,7 +3,6 @@ import uni from '@dcloudio/vite-plugin-uni';
|
||||
import eslintPlugin from 'vite-plugin-eslint';
|
||||
import { resolve } from 'path';
|
||||
import { loadEnv } from 'vite';
|
||||
import { isProdMode } from './src/utils/env';
|
||||
|
||||
// https://vitejs.cn/config/
|
||||
export default ({ mode }: ConfigEnv): UserConfig => {
|
||||
@ -24,7 +23,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
||||
terserOptions: {
|
||||
compress: {
|
||||
// 发布时删除 console
|
||||
drop_console: isProdMode(),
|
||||
// drop_console: env.VITE_PROD as any,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user