|
@@ -4,14 +4,14 @@ import * as Pinia from 'pinia';
|
|
|
import 'uno.css';
|
|
import 'uno.css';
|
|
|
import { selectDictLabel, selectDictLabels } from './utils/ruoyi';
|
|
import { selectDictLabel, selectDictLabels } from './utils/ruoyi';
|
|
|
import { useDict } from '@/utils/dict';
|
|
import { useDict } from '@/utils/dict';
|
|
|
-import uviewPlus from 'uview-plus';
|
|
|
|
|
|
|
+import uviewPlus, { setConfig } from 'uview-plus';
|
|
|
import { navigateBackOrHome, showToast } from '@/utils/common';
|
|
import { navigateBackOrHome, showToast } from '@/utils/common';
|
|
|
import routerGuard from '@/uni_modules/hh-router-guard/src/index';
|
|
import routerGuard from '@/uni_modules/hh-router-guard/src/index';
|
|
|
const uviewProps: any = {
|
|
const uviewProps: any = {
|
|
|
config: {
|
|
config: {
|
|
|
loadFontOnce: true,
|
|
loadFontOnce: true,
|
|
|
color: {
|
|
color: {
|
|
|
- primary: '#714B22',
|
|
|
|
|
|
|
+ primary: '#37A954',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
@@ -36,6 +36,7 @@ const uviewProps: any = {
|
|
|
export function createApp() {
|
|
export function createApp() {
|
|
|
const app = createSSRApp(App);
|
|
const app = createSSRApp(App);
|
|
|
app.use(Pinia.createPinia());
|
|
app.use(Pinia.createPinia());
|
|
|
|
|
+ setConfig(uviewProps)
|
|
|
app.use(uviewPlus, () => {
|
|
app.use(uviewPlus, () => {
|
|
|
return {
|
|
return {
|
|
|
options: {
|
|
options: {
|