pref: change locale provider to config provider. (#232)

pull/237/head
Ryan Wang 2020-08-24 00:53:33 +08:00 committed by GitHub
parent 3e3c789b76
commit eeed76a14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 6 deletions

View File

@ -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)}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@ -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')

View File

@ -1,2 +1 @@
@tailwind components;
@tailwind utilities; @tailwind utilities;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB