Files
cunkebao_v3/Backend/src/App.vue
2025-03-12 12:48:13 +08:00

49 lines
863 B
Vue
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div id="app">
<router-view v-if="showView" />
</div>
</template>
<script>
export default {
name: 'App',
data() {
return {
// 用于点击当前页的router时刷新当前页
showView: true,
}
},
methods: {
// 刷新当前路由方法
refreshView() {
this.showView = false
this.$nextTick(() => (this.showView = true))
},
},
}
</script>
<style>
.image-uploader .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
}
.image-uploader .el-upload:hover {
border-color: #409EFF;
}
.image-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 118px;
height: 118px;
line-height: 118px !important;
text-align: center;
}
.image-uploader .image {
width: 118px;
height: 118px;
display: block;
}
</style>