wolyshaw 4 年之前
父節點
當前提交
036e46b89b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/photo-detail/index.vue

+ 2 - 2
src/views/photo-detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="m-container">
+  <div :class="{'m-container': type === 'DEFAULT'}">
     <h2 v-if="type === 'DEFAULT'">
       <el-page-header @back="onCancel" :content="detailName"></el-page-header>
     </h2>
@@ -77,7 +77,7 @@ export default {
   props: {
     type: {
       type: String,
-      default: ''
+      default: 'DEFAULT'
     },
   },
   components: {