打包配置修复
This commit is contained in:
parent
2a6d9e2be0
commit
c8a88198b4
|
|
@ -23,11 +23,13 @@ declare module 'vue' {
|
||||||
ElCollapse: typeof import('element-plus/es')['ElCollapse']
|
ElCollapse: typeof import('element-plus/es')['ElCollapse']
|
||||||
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
|
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
|
||||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||||
|
ElCountdown: typeof import('element-plus/es')['ElCountdown']
|
||||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
||||||
ElForm: typeof import('element-plus/es')['ElForm']
|
ElForm: typeof import('element-plus/es')['ElForm']
|
||||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||||
|
ElHeader: typeof import('element-plus/es')['ElHeader']
|
||||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||||
ElImage: typeof import('element-plus/es')['ElImage']
|
ElImage: typeof import('element-plus/es')['ElImage']
|
||||||
ElInput: typeof import('element-plus/es')['ElInput']
|
ElInput: typeof import('element-plus/es')['ElInput']
|
||||||
|
|
@ -35,6 +37,7 @@ declare module 'vue' {
|
||||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||||
ElOption: typeof import('element-plus/es')['ElOption']
|
ElOption: typeof import('element-plus/es')['ElOption']
|
||||||
|
ElPageHeader: typeof import('element-plus/es')['ElPageHeader']
|
||||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||||
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
||||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||||
|
|
@ -42,6 +45,9 @@ declare module 'vue' {
|
||||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||||
ElRow: typeof import('element-plus/es')['ElRow']
|
ElRow: typeof import('element-plus/es')['ElRow']
|
||||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
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']
|
ElTable: typeof import('element-plus/es')['ElTable']
|
||||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||||
ElTag: typeof import('element-plus/es')['ElTag']
|
ElTag: typeof import('element-plus/es')['ElTag']
|
||||||
|
|
@ -65,7 +71,4 @@ declare module 'vue' {
|
||||||
UploadComponentNewTwo: typeof import('./src/components/uploadComponentNewTwo/index.vue')['default']
|
UploadComponentNewTwo: typeof import('./src/components/uploadComponentNewTwo/index.vue')['default']
|
||||||
UploadImg: typeof import('./src/components/uploadImg.vue')['default']
|
UploadImg: typeof import('./src/components/uploadImg.vue')['default']
|
||||||
}
|
}
|
||||||
export interface ComponentCustomProperties {
|
|
||||||
vInfiniteScroll: typeof import('element-plus/es')['ElInfiniteScroll']
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ onMounted(async () => {
|
||||||
|
|
||||||
if (origin.indexOf('ticket') != -1) {
|
if (origin.indexOf('ticket') != -1) {
|
||||||
console.log('origin.split爱玩送ticket')
|
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, '登录结果')
|
console.log(res, '登录结果')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,7 @@ const onJumpMessage = () => {
|
||||||
v-if="isMyInfoPage()"
|
v-if="isMyInfoPage()"
|
||||||
:src="headerLogo"
|
:src="headerLogo"
|
||||||
fit="cover"
|
fit="cover"
|
||||||
@click="$router.push('/mall-view')"
|
@click="$router.push('/home')"
|
||||||
/>
|
/>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="header-item" v-if="isShowLogout">
|
<div class="header-item" v-if="isShowLogout">
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ const searchKeywordBtn = () => {
|
||||||
|
|
||||||
store.addHistoryRecord(keywordIptValue.value)
|
store.addHistoryRecord(keywordIptValue.value)
|
||||||
|
|
||||||
if (route.path == '/equipList') {
|
if (route.path.includes('equipList')) {
|
||||||
if (searchTypeName.value === '装备') {
|
if (searchTypeName.value === '装备') {
|
||||||
$bus.emit('search', keywordIptValue.value)
|
$bus.emit('search', keywordIptValue.value)
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -117,7 +117,7 @@ const searchKeywordBtn = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (route.path == '/parity') {
|
if (route.path.includes('parity')) {
|
||||||
if (searchTypeName.value == '需求') {
|
if (searchTypeName.value == '需求') {
|
||||||
$bus.emit('search', keywordIptValue.value)
|
$bus.emit('search', keywordIptValue.value)
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -128,7 +128,7 @@ const searchKeywordBtn = () => {
|
||||||
}
|
}
|
||||||
$bus.emit('search', keywordIptValue.value)
|
$bus.emit('search', keywordIptValue.value)
|
||||||
}
|
}
|
||||||
if (route.path == '/mall-view') {
|
if (route.path.includes('home')) {
|
||||||
if (searchTypeName.value === '装备') {
|
if (searchTypeName.value === '装备') {
|
||||||
router.push({
|
router.push({
|
||||||
name: 'equipList',
|
name: 'equipList',
|
||||||
|
|
@ -142,7 +142,7 @@ const searchKeywordBtn = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (route.path == '/enterpriseZone') {
|
if (route.path.includes('enterpriseZone')) {
|
||||||
if (searchTypeName.value == '装备') {
|
if (searchTypeName.value == '装备') {
|
||||||
router.push({
|
router.push({
|
||||||
name: 'equipList',
|
name: 'equipList',
|
||||||
|
|
@ -338,7 +338,7 @@ const onJumpMessage = () => {
|
||||||
|
|
||||||
<!-- 中间logo 部分 -->
|
<!-- 中间logo 部分 -->
|
||||||
<div class="logo-ipt-container">
|
<div class="logo-ipt-container">
|
||||||
<div class="home-logo" @click="$router.push('/mall-view')">
|
<div class="home-logo" @click="$router.push('/home')">
|
||||||
<!-- <el-image
|
<!-- <el-image
|
||||||
style="width: 70%; cursor: pointer"
|
style="width: 70%; cursor: pointer"
|
||||||
:src="imgSrc"
|
:src="imgSrc"
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
component: () => import('views/AppMain.vue'),
|
component: () => import('views/AppMain.vue'),
|
||||||
redirect: '/mall-view',
|
redirect: '/home',
|
||||||
meta: {
|
meta: {
|
||||||
title: '首页',
|
title: '首页',
|
||||||
keepAlive: false,
|
keepAlive: false,
|
||||||
|
|
@ -83,7 +83,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||||
children: [
|
children: [
|
||||||
// 首页
|
// 首页
|
||||||
{
|
{
|
||||||
path: 'mall-view',
|
path: 'home',
|
||||||
name: 'home',
|
name: 'home',
|
||||||
component: () => import('views/home/index.vue'),
|
component: () => import('views/home/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
|
|
@ -764,7 +764,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
// 路由模式
|
// 路由模式
|
||||||
history: createWebHistory(),
|
history: createWebHistory('/mall-view/'),
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ const handlerLogin = async () => {
|
||||||
if (route.query && route.query.redirect) {
|
if (route.query && route.query.redirect) {
|
||||||
router.push(decodeURIComponent(route.query.redirect))
|
router.push(decodeURIComponent(route.query.redirect))
|
||||||
} else {
|
} else {
|
||||||
router.push('/mall-view')
|
router.push('/home')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,6 @@ const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const pageParams = route.params
|
const pageParams = route.params
|
||||||
console.log(pageParams.maId)
|
console.log(pageParams.maId)
|
||||||
const allKey = ref(0)
|
|
||||||
const activeNames = ref('')
|
const activeNames = ref('')
|
||||||
const protocolChecked = ref<boolean>(false)
|
const protocolChecked = ref<boolean>(false)
|
||||||
const orderList = ref<any>([])
|
const orderList = ref<any>([])
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export default ({ mode }: any) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
base: './',
|
base: '/mall-view/',
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
vueJsx(),
|
vueJsx(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue