mirror of https://github.com/halo-dev/halo-admin
pref: change locale provider to config provider. (#232)
parent
3e3c789b76
commit
eeed76a14e
|
@ -8,7 +8,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||
<meta name="robots" content="noindex,nofllow" />
|
||||
<meta name="generator" content="Halo 1.4.0-beta.2" />
|
||||
<link rel="icon" href="<%= BASE_URL %>logo.png" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>Halo Dashboard</title>
|
||||
<style>
|
||||
body {height: 100%;background-color: #f5f5f5;}#loader{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;border:solid 3px #e5e5e5;border-top-color:#333;border-radius:50%;width:30px;height:30px;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
|
||||
|
|
BIN
public/logo.png
BIN
public/logo.png
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
11
src/App.vue
11
src/App.vue
|
@ -1,9 +1,12 @@
|
|||
<template>
|
||||
<a-locale-provider :locale="locale">
|
||||
<div id="app" class="h-full">
|
||||
<a-config-provider :locale="locale">
|
||||
<div
|
||||
id="app"
|
||||
class="h-full"
|
||||
>
|
||||
<router-view />
|
||||
</div>
|
||||
</a-locale-provider>
|
||||
</a-config-provider>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -18,7 +21,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
const { $store } = this
|
||||
deviceEnquire(deviceType => {
|
||||
deviceEnquire((deviceType) => {
|
||||
switch (deviceType) {
|
||||
case DEVICE_TYPE.DESKTOP:
|
||||
$store.commit('TOGGLE_DEVICE', 'desktop')
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
@tailwind components;
|
||||
@tailwind utilities;
|
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
Loading…
Reference in New Issue