test #101
@@ -96,7 +96,10 @@
|
|||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
오픈 예정일
|
오픈 예정일
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
<th
|
||||||
|
v-if="isAdmin"
|
||||||
|
class="text-center"
|
||||||
|
>
|
||||||
관리
|
관리
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -214,7 +217,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>{{ item.date }}</td>
|
<td>{{ item.date }}</td>
|
||||||
<td>{{ item.releaseDate }}</td>
|
<td>{{ item.releaseDate }}</td>
|
||||||
<td>
|
<td v-if="isAdmin">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-btn
|
<v-btn
|
||||||
@@ -527,6 +530,14 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
isAdmin() {
|
||||||
|
const role = (this.$store && this.$store.state && this.$store.state.accountStore && this.$store.state.accountStore.role)
|
||||||
|
|| (typeof localStorage !== 'undefined' ? localStorage.role : '');
|
||||||
|
return role === 'ADMIN';
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
async created() {
|
async created() {
|
||||||
this.audio_content = {
|
this.audio_content = {
|
||||||
id: null,
|
id: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user