fix : refactoring
This commit is contained in:
@@ -33,24 +33,21 @@
|
|||||||
No articles are here... yet.
|
No articles are here... yet.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="isLogin && feedActive">
|
|
||||||
<article-list
|
<article-list
|
||||||
:value="isLoading"
|
v-if="isLogin && feedActive"
|
||||||
|
:value="isLogin"
|
||||||
:value2="isEmpty"
|
:value2="isEmpty"
|
||||||
@loading="onChangeLoading"
|
@loading="onChangeLoading"
|
||||||
@emptied="emptyCheck">
|
@emptied="emptyCheck">
|
||||||
</article-list>
|
</article-list>
|
||||||
</div>
|
|
||||||
<div v-else>
|
|
||||||
<article-list-global
|
<article-list-global
|
||||||
:value="isLoading"
|
v-else
|
||||||
|
:value="isLogin"
|
||||||
:value2="isEmpty"
|
:value2="isEmpty"
|
||||||
@loading="onChangeLoading"
|
@loading="onChangeLoading"
|
||||||
@emptied="emptyCheck">
|
@emptied="emptyCheck">
|
||||||
|
|
||||||
</article-list-global>
|
</article-list-global>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
@@ -85,7 +82,8 @@ export default {
|
|||||||
name: "TheHome",
|
name: "TheHome",
|
||||||
components: {
|
components: {
|
||||||
'article-list': articleList,
|
'article-list': articleList,
|
||||||
'article-list-global': articleListGlobal},
|
'article-list-global': articleListGlobal
|
||||||
|
},
|
||||||
setup(){
|
setup(){
|
||||||
const isLoading = ref(true);
|
const isLoading = ref(true);
|
||||||
const isEmpty = ref(false);
|
const isEmpty = ref(false);
|
||||||
@@ -109,8 +107,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const globalSelect = () => {
|
const globalSelect = () => {
|
||||||
feedActive.value = false;
|
feedActive.value=false;
|
||||||
globalActive.value = true;
|
globalActive.value=true;
|
||||||
isEmpty.value=false;
|
isEmpty.value=false;
|
||||||
isLoading.value=true;
|
isLoading.value=true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user