修改代码

This commit is contained in:
lVAL 2020-09-27 13:40:01 +08:00
parent 7ecacfa802
commit 27ccc11dd7
5 changed files with 10 additions and 18 deletions

View File

@ -81,8 +81,9 @@ const routes = [
const createRouter = () =>
new VueRouter({
base: "/official-website/",
// base: process.env.BASE_URL,
mode: "history",
base: process.env.BASE_URL,
routes
});

View File

@ -12,9 +12,9 @@
height="550px"
>
<el-carousel-item v-for="(el, i) in imageList" :key="i">
<a href="/honor">
<router-link to="/honor">
<el-image :src="el.src"></el-image>
</a>
</router-link>
</el-carousel-item>
</el-carousel>
</el-card>

View File

@ -100,12 +100,12 @@ export default {
children: [
{
name: "西安铁路职业技术学院",
href: "/preview/pdf?src=/西安铁路职业技术学院.pdf"
href: "/preview/pdf?src=西安铁路职业技术学院.pdf"
},
{
name: "贵州装备制造职业学院",
href:
"/preview/pdf?src=/贵州装备制造职业学院机电技术专业实训室建设.pdf"
"/preview/pdf?src=贵州装备制造职业学院机电技术专业实训室建设.pdf"
}
]
},

View File

@ -8,14 +8,7 @@
<div class="left">
<e-logo />
</div>
<div class="right">
<!-- <e-inline-buy
slot="before"
style="margin-right:30px;"
:show="show"
:menus="buyList"
/> -->
</div>
<div class="right" />
</div>
</div>
</header>
@ -23,13 +16,11 @@
<script>
import eLogo from "@/components/eLogo/index.vue";
// import eInlineBuy from "@/components/eInlineBuy/inline-buy.vue";
import eMenuList from "./eMenuList.vue";
export default {
components: {
eLogo,
// eInlineBuy,
eMenuList
},
data() {
@ -67,12 +58,12 @@ export default {
children: [
{
name: "西安铁路职业技术学院",
href: "/preview/pdf?src=/西安铁路职业技术学院.pdf"
href: "/preview/pdf?src=西安铁路职业技术学院.pdf"
},
{
name: "贵州装备制造职业学院",
href:
"/preview/pdf?src=/贵州装备制造职业学院机电技术专业实训室建设.pdf"
"/preview/pdf?src=贵州装备制造职业学院机电技术专业实训室建设.pdf"
}
]
},

View File

@ -21,7 +21,7 @@ export default {
},
computed: {
src() {
return pdf.createLoadingTask(this.$route.query.src);
return pdf.createLoadingTask(`../${this.$route.query.src}`);
}
},
mounted() {