test #101
@@ -96,7 +96,10 @@
|
||||
<th class="text-center">
|
||||
오픈 예정일
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<th
|
||||
v-if="isAdmin"
|
||||
class="text-center"
|
||||
>
|
||||
관리
|
||||
</th>
|
||||
</tr>
|
||||
@@ -214,7 +217,7 @@
|
||||
</td>
|
||||
<td>{{ item.date }}</td>
|
||||
<td>{{ item.releaseDate }}</td>
|
||||
<td>
|
||||
<td v-if="isAdmin">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<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() {
|
||||
this.audio_content = {
|
||||
id: null,
|
||||
|
||||
Reference in New Issue
Block a user