feat:更新

This commit is contained in:
dengtongyu committed 2023-04-15 13:11:19 +08:00
1 parent 13970b6062
commit 7753498cbe
8 files changed
+48 -25

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ export {}
declare module '@vue/runtime-core' { declare module '@vue/runtime-core' {
export interface GlobalComponents { export interface GlobalComponents {
_index: typeof import('./src/components/abnormal/_index.vue')['default']
Abnormal: typeof import('./src/components/abnormal/index.vue')['default'] Abnormal: typeof import('./src/components/abnormal/index.vue')['default']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
IconAndText: typeof import('./src/components/abnormal/iconAndText.vue')['default'] IconAndText: typeof import('./src/components/abnormal/iconAndText.vue')['default']
+1 -4
View File
@@ -1,6 +1,4 @@
const appName = "协同办公XX管理后台"; const appName = "头牌派对";
const passid = "paasid";
const ENV: any = import.meta.env || process.env; const ENV: any = import.meta.env || process.env;
const VITE_APP_ENV: string = ENV.VITE_APP_ENV; const VITE_APP_ENV: string = ENV.VITE_APP_ENV;
@@ -34,6 +32,5 @@ const injectScriptStr = `<script>;(function () {${temp}})();</script>`;
export { export {
appName, appName,
proxyTarget, proxyTarget,
passid,
injectScriptStr injectScriptStr
}; };
+2 -2
View File
@@ -1,8 +1,8 @@
import { Button, Empty } from "vant"; import { Button } from "vant";
const install = function (app: any) { const install = function (app: any) {
app.use(Button); app.use(Button);
app.use(Empty); // app.use(Empty);
}; };
export { export {
+2 -2
View File
@@ -1,12 +1,12 @@
import { createApp } from "vue"; import { createApp } from "vue";
// import routes from "./routes"; // import routes from "./routes";
import App from "./App.vue"; import App from "./App.vue";
import pinia from "./store/pinia"; // import pinia from "./store/pinia";
import { install } from "./installComponents"; import { install } from "./installComponents";
import "./styles/index.less"; import "./styles/index.less";
const app = createApp(App); const app = createApp(App);
app.use(pinia); // app.use(pinia);
// app.use(routes); // app.use(routes);
install(app); install(app);
app.mount("#app"); app.mount("#app");
+22 -3
View File
@@ -7,13 +7,32 @@ import appWeb from "./web.vue";
<template> <template>
<div class="home"> <div class="home">
<!-- <appH5 /> --> <appH5 class="app-h5" />
<appWeb /> <appWeb class="app-web" />
</div> </div>
</template> </template>
<style lang="less" scoped> <style lang="less" scoped>
.home { .home {
height: 100%; height: 100%;
width: 100%;
overflow: auto;
} }
</style>
.app-web {
display: none;
}
.app-h5 {
display: block;
}
@media only screen and (min-width: 1280px) {
.app-web {
display: block;
}
.app-h5 {
display: none;
}
}</style>
+15 -7
View File
@@ -26,8 +26,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
min-width: 1280px; min-width: 1280px;
min-height: 1000px; min-height: 940px;
overflow: auto;
&-main { &-main {
width: 100%; width: 100%;
height: 100%; height: 100%;
@@ -37,8 +36,6 @@
background-repeat: no-repeat; background-repeat: no-repeat;
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
max-width: 1920px;
margin: 0 auto;
&-middle { &-middle {
width: 1280px; width: 1280px;
@@ -75,15 +72,18 @@
&-footer { &-footer {
width: 100%; width: 100%;
height: 28.3vh; height: 100px;
background-color: #222222; background-color: #222222;
position: fixed; position: fixed;
left: 0; left: 0;
bottom: 0; bottom: 0;
&-text { &-text {
margin-top: 6vh; width: 100%;
height: 16px; height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
font-size: 16px; font-size: 16px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
@@ -92,5 +92,13 @@
text-align: center; text-align: center;
} }
} }
}
@media only screen and (min-height: 1000px) {
.web-footer {
height: calc(100vh - 940px);
}
} }
</style> </style>
-1
View File
@@ -36,7 +36,6 @@
} }
#app { #app {
background-color: #fff;
color: #000; color: #000;
font-size: 14px; font-size: 14px;
font-family: "Helvetica", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif; font-family: "Helvetica", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
+6 -5
View File
@@ -81,11 +81,12 @@ export default (opt: any) => {
} }
}, },
postcss: { postcss: {
// plugins: [ plugins: [
// postcsspxtoviewport({ // postcsspxtoviewport({
// viewportWidth: 375 // viewportWidth: 375,
// }) // selectorBlackList: [""]
// ] // })
]
} }
}, },
server: { server: {