|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import ReactDOM from 'react-dom/client';
|
|
|
|
|
import { configure } from 'mobx';
|
|
|
|
|
import React from 'react'
|
|
|
|
|
import ReactDOM from 'react-dom/client'
|
|
|
|
|
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
|
|
|
|
|
import { AuthContext } from '@/stores/AuthContext'
|
|
|
|
|
import { ThemeContext } from '@/stores/ThemeContext'
|
|
|
|
@ -13,19 +12,9 @@ import SalesManagement from '@/views/SalesManagement'
|
|
|
|
|
import DingdingQRCode from '@/views/DingdingQRCode'
|
|
|
|
|
import AccountProfile from '@/views/AccountProfile'
|
|
|
|
|
import ErrorPage from '@/components/ErrorPage'
|
|
|
|
|
|
|
|
|
|
import Conversations from '@/views/Conversations/ChatWindow'
|
|
|
|
|
import '@/assets/index.css'
|
|
|
|
|
|
|
|
|
|
configure({
|
|
|
|
|
useProxies: 'ifavailable',
|
|
|
|
|
enforceActions: 'observed',
|
|
|
|
|
computedRequiresReaction: true,
|
|
|
|
|
observableRequiresReaction: false,
|
|
|
|
|
reactionRequiresObservable: true,
|
|
|
|
|
disableErrorBoundaries: process.env.NODE_ENV == 'production',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const router = createBrowserRouter([
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|