打包配置修复

This commit is contained in:
BianLzhaoMin 2024-12-27 09:52:19 +08:00
parent 2a6d9e2be0
commit c8a88198b4
8 changed files with 18 additions and 16 deletions

9
components.d.ts vendored
View File

@ -23,11 +23,13 @@ declare module 'vue' {
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElCountdown: typeof import('element-plus/es')['ElCountdown']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput']
@ -35,6 +37,7 @@ declare module 'vue' {
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPageHeader: typeof import('element-plus/es')['ElPageHeader']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
ElProgress: typeof import('element-plus/es')['ElProgress']
@ -42,6 +45,9 @@ declare module 'vue' {
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElStep: typeof import('element-plus/es')['ElStep']
ElSteps: typeof import('element-plus/es')['ElSteps']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
@ -65,7 +71,4 @@ declare module 'vue' {
UploadComponentNewTwo: typeof import('./src/components/uploadComponentNewTwo/index.vue')['default']
UploadImg: typeof import('./src/components/uploadImg.vue')['default']
}
export interface ComponentCustomProperties {
vInfiniteScroll: typeof import('element-plus/es')['ElInfiniteScroll']
}
}

View File

@ -8,7 +8,7 @@ onMounted(async () => {
if (origin.indexOf('ticket') != -1) {
console.log('origin.split爱玩送ticket')
const res = await loginNewApi({ ticket: origin.split('ticket=')[1] })
const res = await loginNewApi({ ticket: origin.split('ticket=')[1],sysType:0 })
console.log(res, '登录结果')
}
})

View File

@ -182,7 +182,7 @@ const onJumpMessage = () => {
v-if="isMyInfoPage()"
:src="headerLogo"
fit="cover"
@click="$router.push('/mall-view')"
@click="$router.push('/home')"
/>
<div class="header-right">
<div class="header-item" v-if="isShowLogout">

View File

@ -107,7 +107,7 @@ const searchKeywordBtn = () => {
store.addHistoryRecord(keywordIptValue.value)
if (route.path == '/equipList') {
if (route.path.includes('equipList')) {
if (searchTypeName.value === '装备') {
$bus.emit('search', keywordIptValue.value)
} else {
@ -117,7 +117,7 @@ const searchKeywordBtn = () => {
})
}
}
if (route.path == '/parity') {
if (route.path.includes('parity')) {
if (searchTypeName.value == '需求') {
$bus.emit('search', keywordIptValue.value)
} else {
@ -128,7 +128,7 @@ const searchKeywordBtn = () => {
}
$bus.emit('search', keywordIptValue.value)
}
if (route.path == '/mall-view') {
if (route.path.includes('home')) {
if (searchTypeName.value === '装备') {
router.push({
name: 'equipList',
@ -142,7 +142,7 @@ const searchKeywordBtn = () => {
})
}
}
if (route.path == '/enterpriseZone') {
if (route.path.includes('enterpriseZone')) {
if (searchTypeName.value == '装备') {
router.push({
name: 'equipList',
@ -338,7 +338,7 @@ const onJumpMessage = () => {
<!-- 中间logo 部分 -->
<div class="logo-ipt-container">
<div class="home-logo" @click="$router.push('/mall-view')">
<div class="home-logo" @click="$router.push('/home')">
<!-- <el-image
style="width: 70%; cursor: pointer"
:src="imgSrc"

View File

@ -73,7 +73,7 @@ const routes: Array<RouteRecordRaw> = [
{
path: '/',
component: () => import('views/AppMain.vue'),
redirect: '/mall-view',
redirect: '/home',
meta: {
title: '首页',
keepAlive: false,
@ -83,7 +83,7 @@ const routes: Array<RouteRecordRaw> = [
children: [
// 首页
{
path: 'mall-view',
path: 'home',
name: 'home',
component: () => import('views/home/index.vue'),
meta: {
@ -764,7 +764,7 @@ const routes: Array<RouteRecordRaw> = [
const router = createRouter({
// 路由模式
history: createWebHistory(),
history: createWebHistory('/mall-view/'),
routes
})

View File

@ -67,7 +67,7 @@ const handlerLogin = async () => {
if (route.query && route.query.redirect) {
router.push(decodeURIComponent(route.query.redirect))
} else {
router.push('/mall-view')
router.push('/home')
}
}
}

View File

@ -241,7 +241,6 @@ const router = useRouter()
const route = useRoute()
const pageParams = route.params
console.log(pageParams.maId)
const allKey = ref(0)
const activeNames = ref('')
const protocolChecked = ref<boolean>(false)
const orderList = ref<any>([])

View File

@ -31,7 +31,7 @@ export default ({ mode }: any) => {
}
return defineConfig({
base: './',
base: '/mall-view/',
plugins: [
vue(),
vueJsx(),