This commit is contained in:
初志鑫 2020-07-17 09:31:45 +08:00
parent f09b09f4f3
commit 067bcd9a93
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="vab-ad"> <div v-if="nodeEnv !== 'development'" class="vab-ad">
<el-carousel <el-carousel
v-if="adList" v-if="adList"
height="30px" height="30px"
@ -20,6 +20,7 @@ import { getList } from "@/api/ad";
export default { export default {
data() { data() {
return { return {
nodeEnv: process.env.NODE_ENV,
adList: [], adList: [],
}; };
}, },

View File

@ -1,7 +1,14 @@
<template> <template>
<div class="index-container"> <div class="index-container">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24"> <el-col
v-if="nodeEnv !== 'development'"
:xs="24"
:sm="24"
:md="24"
:lg="24"
:xl="24"
>
<el-alert <el-alert
v-if="noticeList[0]" v-if="noticeList[0]"
:title="noticeList[0].title" :title="noticeList[0].title"