Commit f7ad327c authored by 王's avatar

去除tab/home注释开发中...

parent 7c9b1052
<template>
<div class="head-index">
<img class="logo" :src="iconUrl"/>{{$store.state.userName}}
<img class="logo" :src="iconUrl" @click="toHome"/>{{$store.state.userName}}
<div class="fl-r">
<el-button round size="mini" @click="logOut">退出登录</el-button>
</div>
......@@ -33,6 +33,9 @@
}).catch(() => {
});
},
toHome(){
this.$router.push({name:'first'})
}
}
}
......
......@@ -12,7 +12,7 @@
</transition>
<div class="content">
<div class="router-block">
<tab/>
<!--<tab/>-->
<transition name="el-fade-in-linear">
<keep-alive>
<router-view class="child-view" v-loading="$store.state.mainLoad"/>
......@@ -67,7 +67,7 @@
position: relative;
.child-view{
position: absolute;
top: 42px;
top: 0;
height: auto;
left: 0;
bottom:0;
......
......@@ -287,13 +287,8 @@
this.$store.dispatch('setProgress',{type:'new',id:a.file.uid});
this.fileUid = a.file.uid;
uploadFileApi({file:a.file,type:'local'}).then(res=>{
if(this.form.goods_desc.img){
this.form.goods_desc.img[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''}
}else{
this.form.goods_desc.img=[];
this.form.goods_desc.img[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''}
}
this.form.cover = process.env.IMAGE_URL_HEAD + res.url;
this.imageList[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''};
})
}
},
......
......@@ -52,7 +52,7 @@
loginApi(json).then(res=>{
this.$store.dispatch('setToken',res.token);
this.$store.dispatch('setUserName',res.user_name);
this.$router.push({name:'index'})
this.$router.push({name:'resources'})
})
}
})
......
<template>
<div class="index">
<!-- 组件有两个属性 value 传入内容双向绑定 setting传入配置信息 -->
<img :src="indexImg" class="indexImg"/>
<!--<img :src="indexImg" class="indexImg"/>-->
<div style="text-align: center;margin-top: 5%;">正在开发中...</div>
</div>
</template>
......
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