feat: delete useless files
This commit is contained in:
parent
1da9ccda08
commit
c9fa715f75
@ -1,17 +0,0 @@
|
||||
<template>
|
||||
<view>
|
||||
<view>测试是否会自动引入到pages,发现会,除非增加exclude配置</view>
|
||||
<view>需要在vite.config.ts(注意不是pages.config.ts)中UniPages()配置exclude</view>
|
||||
<view>配置如下: </view>
|
||||
<pre>
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
UniPages({
|
||||
exclude: ['**/components/**/**.*'],
|
||||
}),
|
||||
uni(),
|
||||
],
|
||||
})
|
||||
</pre>
|
||||
</view>
|
||||
</template>
|
@ -13,12 +13,6 @@
|
||||
<fly-content :line="20" />
|
||||
</template>
|
||||
|
||||
<route lang="json5">
|
||||
{
|
||||
style: { navigationStyle: 'custom' },
|
||||
}
|
||||
</route>
|
||||
|
||||
<script lang="ts" setup>
|
||||
// 获取屏幕边界到安全区域距离
|
||||
const { safeAreaInsets } = uni.getSystemInfoSync()
|
||||
|
@ -1,12 +0,0 @@
|
||||
<route lang="json5">
|
||||
{
|
||||
style: { navigationBarTitleText: 'pages 自动导入' },
|
||||
}
|
||||
</route>
|
||||
|
||||
<template>
|
||||
<view class="m-4">
|
||||
<view>vite.config.ts里面没有配置exclude的都会自动导入</view>
|
||||
<view>测试是否会自动引入到pages,发现会,成功!</view>
|
||||
</view>
|
||||
</template>
|
@ -11,17 +11,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="m-4">
|
||||
<text>测试配置exclude后,还会自动导入页面吗?</text>
|
||||
<PagesAutoImport />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="TestIndex">
|
||||
import { ref } from 'vue'
|
||||
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import PagesAutoImport from './components/pages-auto-import.vue'
|
||||
/** 激活“分享给好友” */
|
||||
onShareAppMessage((options: Page.ShareAppMessageOption): Page.CustomShareContent => {
|
||||
console.log('options:', options)
|
||||
@ -77,10 +72,6 @@ const list = ref([
|
||||
name: '请求封装+请求拦截器',
|
||||
url: 'request',
|
||||
},
|
||||
{
|
||||
name: 'page自动引入',
|
||||
url: 'pages-auto-import',
|
||||
},
|
||||
])
|
||||
const goDetailPage = (path: string) => {
|
||||
const url = `/pages/demo/demo/${path}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user