Browse Source

fix bug

old
wangqing 4 years ago
parent
commit
7fbfb72ee3
  1. 0
      src/assets/images/official/banner02.png
  2. 2
      src/views/official/index.vue
  3. 8
      src/views/project/template/preview.vue

0
src/assets/images/official/banner2.png → src/assets/images/official/banner02.png

Before

Width:  |  Height:  |  Size: 646 KiB

After

Width:  |  Height:  |  Size: 646 KiB

2
src/views/official/index.vue

@ -36,7 +36,7 @@
<el-button @click="$router.push({path:'/home'})">立即体验</el-button> <el-button @click="$router.push({path:'/home'})">立即体验</el-button>
</div> </div>
<div class="right"> <div class="right">
<img src="@/assets/images/official/banner2.png"> <img src="@/assets/images/official/banner02.png">
</div> </div>
</div> </div>
</div> </div>

8
src/views/project/template/preview.vue

@ -7,7 +7,7 @@
</el-button> </el-button>
</div> </div>
<div class="template-preview-content"> <div class="template-preview-content">
<el-scrollbar style="height: 90vh;"> <el-scrollbar style="height: 80vh;">
<project-form <project-form
v-if="projectConfig.projectKey" v-if="projectConfig.projectKey"
:project-config="projectConfig" :project-config="projectConfig"
@ -57,8 +57,7 @@ export default {
if (res.data) { if (res.data) {
this.$router.push({path: '/project/form', query: {key: res.data, active: 1}}) this.$router.push({path: '/project/form', query: {key: res.data, active: 1}})
} }
}).catch(res => { }).catch(() => {
console.log(res)
this.createProjectLoading = false this.createProjectLoading = false
}) })
}, },
@ -73,7 +72,8 @@ export default {
.template-preview-container { .template-preview-container {
display: flex; display: flex;
width: 100%; width: 100%;
height: 100%; height: 98%;
overflow-x: hidden;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
align-content: center; align-content: center;

Loading…
Cancel
Save