Commit f7ad327c authored by 王's avatar

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

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