|
|
|
|
@ -45,7 +45,7 @@ import TrainticketInvoicePaid from '@/views/trainticket/invoicePaid'
|
|
|
|
|
import { ThemeContext } from '@/stores/ThemeContext'
|
|
|
|
|
import { usingStorage } from '@/hooks/usingStorage'
|
|
|
|
|
import useAuthStore from './stores/Auth'
|
|
|
|
|
import { isNotEmpty } from '@/utils/commons'
|
|
|
|
|
import { isNotEmpty } from '@haina/utils-commons'
|
|
|
|
|
|
|
|
|
|
import ProductsManage from '@/views/products/Manage';
|
|
|
|
|
import ProductsDetail from '@/views/products/Detail';
|
|
|
|
|
@ -54,10 +54,11 @@ import ImageViewer from '@/views/ImageViewer';
|
|
|
|
|
import CustomerImageViewer from '@/views/CustomerImageViewer';
|
|
|
|
|
import PickYear from './views/products/PickYear'
|
|
|
|
|
|
|
|
|
|
import { PERM_ACCOUNT_MANAGEMENT, PERM_ROLE_NEW,
|
|
|
|
|
import { BUILD_VERSION, PERM_ACCOUNT_MANAGEMENT, PERM_ROLE_NEW,
|
|
|
|
|
PERM_TRAIN_TICKET, PERM_AIR_TICKET, PERM_PRODUCTS_MANAGEMENT, PERM_PRODUCTS_OFFER_PUT,
|
|
|
|
|
PERM_RESERVATION_ALL, PERM_FEEDBACK_ALL, PERM_INVOICE_ALL, PERM_REPORT_ALL, PERM_REVIEW_ALL, PERM_PRODUCTS_INFO_PUT
|
|
|
|
|
} from '@/config'
|
|
|
|
|
import { appendRequestHeader } from '@haina/utils-request';
|
|
|
|
|
|
|
|
|
|
import './i18n'
|
|
|
|
|
|
|
|
|
|
@ -128,6 +129,8 @@ const initRouter = async () => {
|
|
|
|
|
|
|
|
|
|
const initAppliction = async () => {
|
|
|
|
|
|
|
|
|
|
appendRequestHeader('X-Web-Version', BUILD_VERSION);
|
|
|
|
|
|
|
|
|
|
const { loginToken, userId } = usingStorage()
|
|
|
|
|
|
|
|
|
|
if (isNotEmpty(userId) && isNotEmpty(loginToken)) {
|
|
|
|
|
|