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="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||||
<meta name="robots" content="noindex,nofllow" />
|
<meta name="robots" content="noindex,nofllow" />
|
||||||
<meta name="generator" content="Halo 1.4.0-beta.2" />
|
<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>
|
<title>Halo Dashboard</title>
|
||||||
<style>
|
<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)}}
|
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>
|
<template>
|
||||||
<a-locale-provider :locale="locale">
|
<a-config-provider :locale="locale">
|
||||||
<div id="app" class="h-full">
|
<div
|
||||||
|
id="app"
|
||||||
|
class="h-full"
|
||||||
|
>
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</a-locale-provider>
|
</a-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -18,7 +21,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const { $store } = this
|
const { $store } = this
|
||||||
deviceEnquire(deviceType => {
|
deviceEnquire((deviceType) => {
|
||||||
switch (deviceType) {
|
switch (deviceType) {
|
||||||
case DEVICE_TYPE.DESKTOP:
|
case DEVICE_TYPE.DESKTOP:
|
||||||
$store.commit('TOGGLE_DEVICE', 'desktop')
|
$store.commit('TOGGLE_DEVICE', 'desktop')
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
@tailwind components;
|
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
Loading…
Reference in New Issue