fix: Dashboard骨架屏模板修复
- 重写Dashboard模板结构(v-if/v-else格式正确) - 添加加载骨架屏 - 添加robots.txt
This commit is contained in:
@@ -77,9 +77,9 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
@@ -112,10 +112,9 @@ onMounted(async () => {
|
|||||||
.stat-item { text-align: center; }
|
.stat-item { text-align: center; }
|
||||||
.stat-item .num { display: block; font-size: 36px; font-weight: 700; color: #6366f1; margin-bottom: 8px; }
|
.stat-item .num { display: block; font-size: 36px; font-weight: 700; color: #6366f1; margin-bottom: 8px; }
|
||||||
.stat-item .label { color: #888; font-size: 14px; }
|
.stat-item .label { color: #888; font-size: 14px; }
|
||||||
.action-btn {
|
.action-btn { width: 100%; }
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.table-wrap { overflow-x: auto; }
|
.table-wrap { overflow-x: auto; }
|
||||||
|
.dashboard-loading { padding: 20px; }
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.stat-item .num { font-size: 28px; }
|
.stat-item .num { font-size: 28px; }
|
||||||
|
|||||||
Reference in New Issue
Block a user