Commit 868908c2 authored by 张伯涛's avatar 张伯涛

菜单添加,以及VUE_APP_BASE_APIS(注意打包的时候打包的env文件也需要配置)

parent 28753135
...@@ -4,7 +4,7 @@ ENV = 'development' ...@@ -4,7 +4,7 @@ ENV = 'development'
# base api # base api
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_APIS = 'http://192.168.1.46:8090'
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
<template>
<div class="classManagement_module">
开课
</div>
</template>
<script>
export default {
name: "index",
data() {
return {
}
},
created() {
},
mounted() {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.classManagement_module{
}
</style>
...@@ -298,6 +298,8 @@ export default { ...@@ -298,6 +298,8 @@ export default {
} }
}; };
return { return {
HTTPApi: process.env.VUE_APP_BASE_APIS,
// interfaceUrl:"http://"+url.apiIP+":"+url.apiPORT+url.apiPrefix, // API服务访问的URL
imageSrc: require('@/assets/image/test.png'), imageSrc: require('@/assets/image/test.png'),
//显示开关 //显示开关
showSwitch: { showSwitch: {
...@@ -619,7 +621,7 @@ export default { ...@@ -619,7 +621,7 @@ export default {
// console.log(error); // console.log(error);
// }); // });
window.location.href = this.interfaceUrl + 'excelUtil/excelWithoutAuth?type=6'; window.location.href = this.HTTPApi + '/excelUtil/excelWithoutAuth?type=6';
}, },
......
<template>
<div class="unitManagement_module">
单位
</div>
</template>
<script>
export default {
name: "index",
data() {
return {
}
},
created() {
},
mounted() {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.unitManagement_module{
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment