修改代码
This commit is contained in:
parent
7ecacfa802
commit
27ccc11dd7
@ -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
|
||||
});
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -21,7 +21,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
src() {
|
||||
return pdf.createLoadingTask(this.$route.query.src);
|
||||
return pdf.createLoadingTask(`../${this.$route.query.src}`);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
Reference in New Issue
Block a user