Commit c4bc5d2f by 李敏

Merge branch 'v3.8.0' into 'master'

V3.8.0

See merge request !2
2 parents 06a6103e 224979d0
This diff could not be displayed because it is too large.
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"gltracker": "^0.1.3", "gltracker": "^0.1.3",
"md5": "^2.3.0", "md5": "^2.3.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"qiankun": "^2.8.4", "qiankun": "^2.10.5",
"vue": "2.6.11", "vue": "2.6.11",
"vue-router": "^3.5.3", "vue-router": "^3.5.3",
"vuex": "^3.4.0" "vuex": "^3.4.0"
......
...@@ -7,16 +7,16 @@ ...@@ -7,16 +7,16 @@
.i-authorize-active { width: 20px; height: 20px; background-position: -30px -104px; } .i-authorize-active { width: 20px; height: 20px; background-position: -30px -104px; }
.i-authorize { width: 20px; height: 20px; background-position: -60px -104px; } .i-authorize { width: 20px; height: 20px; background-position: -60px -104px; }
.i-avatar { width: 32px; height: 32px; background-position: 0px 0px; } .i-avatar { width: 32px; height: 32px; background-position: 0px 0px; }
.i-back { width: 10px; height: 10px; background-position: -220px -194px; } .i-back { width: 10px; height: 10px; background-position: -100px -224px; }
.i-checked { width: 20px; height: 20px; background-position: -90px -104px; } .i-checked { width: 20px; height: 20px; background-position: -90px -104px; }
.i-contact { width: 16px; height: 16px; background-position: -120px -194px; } .i-contact { width: 16px; height: 16px; background-position: 0px -224px; }
.i-content-active { width: 20px; height: 21px; background-position: -72px 0px; } .i-content-active { width: 20px; height: 21px; background-position: -72px 0px; }
.i-content { width: 20px; height: 21px; background-position: 0px -42px; } .i-content { width: 20px; height: 21px; background-position: 0px -42px; }
.i-custom-active { width: 20px; height: 20px; background-position: -120px -104px; } .i-custom-active { width: 20px; height: 20px; background-position: -120px -104px; }
.i-custom { width: 20px; height: 20px; background-position: -162px 0px; } .i-custom { width: 20px; height: 20px; background-position: -162px 0px; }
.i-dataview-active { width: 20px; height: 20px; background-position: -162px -30px; } .i-dataview-active { width: 20px; height: 20px; background-position: -162px -30px; }
.i-dataview { width: 20px; height: 20px; background-position: -162px -60px; } .i-dataview { width: 20px; height: 20px; background-position: -162px -60px; }
.i-dot { width: 12px; height: 12px; background-position: -198px -194px; } .i-dot { width: 12px; height: 12px; background-position: -78px -224px; }
.i-drainage-active { width: 20px; height: 20px; background-position: -162px -90px; } .i-drainage-active { width: 20px; height: 20px; background-position: -162px -90px; }
.i-drainage { width: 20px; height: 20px; background-position: 0px -134px; } .i-drainage { width: 20px; height: 20px; background-position: 0px -134px; }
.i-edit-active { width: 20px; height: 20px; background-position: -30px -134px; } .i-edit-active { width: 20px; height: 20px; background-position: -30px -134px; }
...@@ -30,31 +30,35 @@ ...@@ -30,31 +30,35 @@
.i-finance { width: 20px; height: 20px; background-position: -192px -90px; } .i-finance { width: 20px; height: 20px; background-position: -192px -90px; }
.i-home-active { width: 20px; height: 20px; background-position: -192px -120px; } .i-home-active { width: 20px; height: 20px; background-position: -192px -120px; }
.i-home { width: 20px; height: 20px; background-position: 0px -164px; } .i-home { width: 20px; height: 20px; background-position: 0px -164px; }
.i-left { width: 10px; height: 9px; background-position: 0px -224px; } .i-inventory-active { width: 20px; height: 20px; background-position: -30px -164px; }
.i-inventory { width: 20px; height: 20px; background-position: -60px -164px; }
.i-left { width: 10px; height: 9px; background-position: -120px -224px; }
.i-link-active { width: 20px; height: 21px; background-position: -30px -42px; } .i-link-active { width: 20px; height: 21px; background-position: -30px -42px; }
.i-link { width: 20px; height: 21px; background-position: -60px -42px; } .i-link { width: 20px; height: 21px; background-position: -60px -42px; }
.i-live-active { width: 20px; height: 20px; background-position: -30px -164px; }
.i-live { width: 20px; height: 20px; background-position: -60px -164px; }
.i-logoff-active { width: 20px; height: 20px; background-position: -90px -164px; }
.i-logoff { width: 20px; height: 20px; background-position: -120px -164px; }
.i-marketing-active { width: 20px; height: 20px; background-position: -150px -164px; }
.i-marketing { width: 20px; height: 20px; background-position: -180px -164px; }
.i-message-active { width: 16px; height: 16px; background-position: -146px -194px; }
.i-message { width: 16px; height: 16px; background-position: -172px -194px; }
.i-outbound-active { width: 20px; height: 21px; background-position: -102px 0px; }
.i-outbound { width: 20px; height: 20px; background-position: -222px 0px; }
.i-password { width: 20px; height: 20px; background-position: -222px -30px; }
.i-provider-active { width: 20px; height: 21px; background-position: -102px -31px; }
.i-provider { width: 20px; height: 20px; background-position: -222px -60px; }
.i-right { width: 8px; height: 8px; background-position: -20px -224px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -222px -90px; }
.i-salepre { width: 20px; height: 20px; background-position: -222px -120px; }
.i-services-active { width: 20px; height: 20px; background-position: -222px -150px; }
.i-services { width: 20px; height: 20px; background-position: 0px -194px; }
.i-settings-active { width: 20px; height: 20px; background-position: -30px -194px; }
.i-settings { width: 20px; height: 20px; background-position: -60px -194px; }
.i-subscription-active { width: 20px; height: 21px; background-position: 0px -73px; }
.i-subscription { width: 20px; height: 21px; background-position: -30px -73px; }
.i-user { width: 20px; height: 20px; background-position: -90px -194px; }
.i-mapping { width: 20px; height: 21px; background-position: -60px -73px; }
.i-mapping-active { width: 20px; height: 21px; background-position: -90px -73px; }
\ No newline at end of file \ No newline at end of file
.i-live-active { width: 20px; height: 20px; background-position: -90px -164px; }
.i-live { width: 20px; height: 20px; background-position: -120px -164px; }
.i-logoff-active { width: 20px; height: 20px; background-position: -150px -164px; }
.i-logoff { width: 20px; height: 20px; background-position: -180px -164px; }
.i-mapping-active { width: 20px; height: 21px; background-position: -102px 0px; }
.i-mapping { width: 20px; height: 21px; background-position: -102px -31px; }
.i-marketing-active { width: 20px; height: 20px; background-position: -222px 0px; }
.i-marketing { width: 20px; height: 20px; background-position: -222px -30px; }
.i-message-active { width: 16px; height: 16px; background-position: -26px -224px; }
.i-message { width: 16px; height: 16px; background-position: -52px -224px; }
.i-outbound-active { width: 20px; height: 21px; background-position: 0px -73px; }
.i-outbound { width: 20px; height: 20px; background-position: -222px -60px; }
.i-password { width: 20px; height: 20px; background-position: -222px -90px; }
.i-provider-active { width: 20px; height: 21px; background-position: -30px -73px; }
.i-provider { width: 20px; height: 20px; background-position: -222px -120px; }
.i-purchase-active { width: 20px; height: 20px; background-position: -222px -150px; }
.i-purchase { width: 20px; height: 20px; background-position: 0px -194px; }
.i-right { width: 8px; height: 8px; background-position: -140px -224px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -30px -194px; }
.i-salepre { width: 20px; height: 20px; background-position: -60px -194px; }
.i-services-active { width: 20px; height: 20px; background-position: -90px -194px; }
.i-services { width: 20px; height: 20px; background-position: -120px -194px; }
.i-settings-active { width: 20px; height: 20px; background-position: -150px -194px; }
.i-settings { width: 20px; height: 20px; background-position: -180px -194px; }
.i-subscription-active { width: 20px; height: 21px; background-position: -60px -73px; }
.i-subscription { width: 20px; height: 21px; background-position: -90px -73px; }
.i-user { width: 20px; height: 20px; background-position: -210px -194px; }
\ No newline at end of file \ No newline at end of file

25.7 KB | W: | H:

28.8 KB | W: | H:

src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* @Author: limin * @Author: limin
* @Date: 2021-09-18 09:35:02 * @Date: 2021-09-18 09:35:02
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2022-07-21 09:56:39 * @LastEditTime: 2023-04-11 10:21:58
* @FilePath: \scrm\scrm-base\src\common\constants.js * @FilePath: \scrm-base\src\common\constants.js
*/ */
export default { export default {
SCRM_BASE_SESSION: 'SCRM_BASE_SESSION', SCRM_BASE_SESSION: 'SCRM_BASE_SESSION',
......
...@@ -4,22 +4,28 @@ ...@@ -4,22 +4,28 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2023-01-04 13:37:01 * @LastEditTime: 2023-04-18 18:37:49
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
import { utils } from 'glsx-common'
import { constants } from '@/common'
const sw = !!+process.env.VUE_APP_CONFIG_SWITCH_LOCAL const sw = !!+process.env.VUE_APP_CONFIG_SWITCH_LOCAL
export const fetchConfig = (isEnv = sw) => { export const fetchConfig = (isEnv = sw) => {
if (isEnv) { if (isEnv) {
return Promise.resolve(cfg) return Promise.resolve(cfg)
} }
const _config = utils.storage.getSession(constants.SCRM_BASE_CONFIG)
return new Http({ headers: { refererurl: location.pathname }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config') const _pathname = location.pathname
if (_config && _pathname !== '/') {
return Promise.resolve(_config)
}
return new Http({ headers: { refererurl: _pathname }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
cfg.isStandard = !cfg.customized || cfg.customized.assets === 'glsx' cfg.isStandard = !cfg.customized || cfg.customized.assets !== 'cgacar'
vue.prototype.$config = cfg vue.prototype.$config = cfg
} }
} }
......
...@@ -9,12 +9,17 @@ ...@@ -9,12 +9,17 @@
*/ */
import { push } from './history' import { push } from './history'
import { Subject } from 'rxjs' import { Subject } from 'rxjs'
/**
* Messenger类扩展了Subject类,用于发送和接收消息。
*/
class Messenger extends Subject { class Messenger extends Subject {
constructor() { /**
super() * send方法用于发送消息,并将消息推送到浏览器历史记录中。
} * @param {Object} msg - 要发送的消息对象。
* @param {string} msg.route - 要推送到浏览器历史记录中的路由。
*/
send(msg) { send(msg) {
if (!msg) return
const { route } = msg const { route } = msg
if (route) { if (route) {
push(route) push(route)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: lizhijie429 * @Author: lizhijie429
* @Date: 2021-08-19 11:16:08 * @Date: 2021-08-19 11:16:08
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2022-07-26 09:39:27 * @LastEditTime: 2023-04-12 09:38:06
* @Description: * @Description:
--> -->
<template> <template>
......
...@@ -4,35 +4,38 @@ ...@@ -4,35 +4,38 @@
<GLBreadcrumb2></GLBreadcrumb2> <GLBreadcrumb2></GLBreadcrumb2>
</div> </div>
<div class="flex-row flex-items-center nav-right"> <div class="flex-row flex-items-center nav-right">
<div class="menu-icons"> <template v-if="$config.productCode !== 'PC0008'">
<span class="menu-icon"> <div class="menu-icons">
<el-badge class="item"> <span class="menu-icon">
<i class="i i-message" /> <el-badge class="item">
</el-badge> <i class="i i-message" />
</span> </el-badge>
<el-popover placement="bottom" trigger="click"> </span>
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 86px"> <el-popover placement="bottom" trigger="click">
<img :src="`${$config.cdn}/assets/images/empty.png`" style="width: 40px; height: 24px" /> <div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 86px">
<span style="margin-top: 4px">暂无消息</span> <img :src="`${$config.cdn}/assets/images/empty.png`" style="width: 40px; height: 24px" />
</div> <span style="margin-top: 4px">暂无消息</span>
<span class="nav-text" slot="reference" style="cursor: pointer">消息</span> </div>
</el-popover> <span class="nav-text" slot="reference" style="cursor: pointer">消息</span>
</div>
<div class="menu-icons">
<span class="menu-icon">
<el-badge class="item">
<i class="i i-contact" />
</el-badge>
</span>
<span class="nav-text">
<el-popover placement="bottom" width="228" height="316" trigger="click">
<NavContact></NavContact>
<a href="javascript:void(0);" slot="reference">联系我们</a>
</el-popover> </el-popover>
| </div>
<a href="https://www.yuque.com/docs/share/ad640d83-50d9-49cc-a92c-0a5230fedd17" target="blank">营销学院</a> <!-- PC0008 服务商 屏蔽联系我们 -->
</span> <div class="menu-icons">
</div> <span class="menu-icon">
<el-badge class="item">
<i class="i i-contact" />
</el-badge>
</span>
<span class="nav-text">
<el-popover placement="bottom" width="228" height="316" trigger="click">
<NavContact></NavContact>
<a href="javascript:void(0);" slot="reference">联系我们</a>
</el-popover>
|
<a href="https://www.yuque.com/docs/share/ad640d83-50d9-49cc-a92c-0a5230fedd17" target="blank">营销学院</a>
</span>
</div>
</template>
<div class="flex-row flex-items-center"> <div class="flex-row flex-items-center">
<i class="i i-avatar" /> <i class="i i-avatar" />
</div> </div>
......
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
.logo { > .logo {
flex: 0 0 $logo-height; flex: 0 0 $logo-height;
} }
.side-bar-menu { .side-bar-menu {
......
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
line-height: 40px; line-height: 40px;
background-color: transparent !important; background-color: transparent !important;
border-radius: 4px; border-radius: 4px;
padding-left: 25px !important; padding-left: 28px !important;
&:hover { &:hover {
background-color: #fff !important; background-color: #fff !important;
span { span {
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '~@/assets/style/collapse.scss'; @import '~@/assets/style/collapse.scss';
$active-background-color: rgba(88, 80, 255, 0.2) !important; $active-background-color: rgba(88, 80, 255, 0.2) !important;
$menu-item-width: 176px !important; $menu-item-width: 173px !important;
.scrm-base-submenu-item { .scrm-base-submenu-item {
/deep/.el-menu-item-group__title { /deep/.el-menu-item-group__title {
display: none; display: none;
......
import Vue from 'vue' import Vue from 'vue'
import { Message, Button, ButtonGroup, Container, Aside, Menu, MenuItem, Submenu, MenuItemGroup, Header, Main, Footer, Avatar, Badge, Dropdown, DropdownMenu, DropdownItem, Scrollbar, Carousel, CarouselItem, Form, FormItem, Input, Image, Tabs, TabPane, Loading, Dialog, Alert, Popover, Tooltip } from 'element-ui' import { Message, Button, ButtonGroup, Container, Aside, Menu, MenuItem, Submenu, MenuItemGroup, Header, Main, Footer, Avatar, Badge, Dropdown, DropdownMenu, DropdownItem, Scrollbar, Carousel, CarouselItem, Form, FormItem, Input, Image, Tabs, TabPane, Loading, Dialog, Alert, Popover, Tooltip } from 'element-ui'
Vue.use(Button) ;[Button, ButtonGroup, Container, Aside, Menu, MenuItem, Submenu, MenuItemGroup, Header, Main, Footer, Avatar, Badge, Dropdown, DropdownMenu, DropdownItem, Scrollbar, Carousel, CarouselItem, Form, FormItem, Input, Image, Tabs, TabPane, Loading, Dialog, Alert, Popover, Tooltip].forEach(component => Vue.use(component))
Vue.use(ButtonGroup)
Vue.use(Container)
Vue.use(Aside)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Submenu)
Vue.use(MenuItemGroup)
Vue.use(Header)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Avatar)
Vue.use(Badge)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Scrollbar)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Image)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Loading)
Vue.use(Dialog)
Vue.use(Alert)
Vue.use(Popover)
Vue.use(Tooltip)
export { Message } export { Message }
...@@ -9,7 +9,8 @@ Vue.use(VueRouter) ...@@ -9,7 +9,8 @@ Vue.use(VueRouter)
const Path = Object.freeze({ const Path = Object.freeze({
LOGIN: '/login', LOGIN: '/login',
E404: '/404', E404: '/404',
OSS: '/oss' OSS: '/oss',
SP: '/sp' //Service Provider
}) })
// 路由 // 路由
let constantRoutes = Object.freeze([ let constantRoutes = Object.freeze([
...@@ -32,6 +33,12 @@ let constantRoutes = Object.freeze([ ...@@ -32,6 +33,12 @@ let constantRoutes = Object.freeze([
meta: { title: 'OSS登录' } meta: { title: 'OSS登录' }
}, },
{ {
path: Path.SP,
name: 'SP',
component: Login,
meta: { title: '服务商登录' }
},
{
path: '/', path: '/',
redirect: Path.LOGIN // 默认加载的路由 redirect: Path.LOGIN // 默认加载的路由
} }
...@@ -84,26 +91,47 @@ router.onError(err => { ...@@ -84,26 +91,47 @@ router.onError(err => {
console.log(err) console.log(err)
}) })
router.beforeEach(async (to, from, next) => { router.beforeEach(async (to, from, next) => {
if (Object.values(Path).includes(to.path)) return next() const isPathIncluded = Object.values(Path).includes(to.path)
if (isPathIncluded) {
return next()
}
const session = store.getters.auth.session const session = store.getters.auth.session
const storeSession = utils.storage.getSession(constants.SCRM_BASE_SESSION) const storeSession = utils.storage.getSession(constants.SCRM_BASE_SESSION)
if (storeSession && from === VueRouter.START_LOCATION && session === null) {
await store.dispatch('init/init')
return next({ ...to, replace: true })
}
if (storeSession) { if (storeSession) {
if (from === VueRouter.START_LOCATION && session === null) {
await store.dispatch('init/init')
return next({ ...to, replace: true })
}
// if (router.hasRoute(to.path)) {
const { $title } = to.query const { $title } = to.query
$title && (to.meta.title = $title) $title && (to.meta.title = $title)
store.dispatch('app/setCurrentPage', to.meta) store.dispatch('app/setCurrentPage', to.meta)
return next() return next()
// }
// return next({ path: Path.E404, replace: true })
} }
if (!session) { if (!session) {
next({ path: Path.LOGIN }) return next({ path: Path.LOGIN })
} }
// next({ path: Path.LOGIN })
}) })
// router.beforeEach(async (to, from, next) => {
// if (Object.values(Path).includes(to.path)) return next()
// const session = store.getters.auth.session
// const storeSession = utils.storage.getSession(constants.SCRM_BASE_SESSION)
// if (storeSession) {
// if (from === VueRouter.START_LOCATION && session === null) {
// await store.dispatch('init/init')
// return next({ ...to, replace: true })
// }
// // if (router.hasRoute(to.path)) {
// const { $title } = to.query
// $title && (to.meta.title = $title)
// store.dispatch('app/setCurrentPage', to.meta)
// return next()
// // }
// // return next({ path: Path.E404, replace: true })
// }
// if (!session) {
// next({ path: Path.LOGIN })
// }
// // next({ path: Path.LOGIN })
// })
export default router export default router
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import { constants } from '@/common' import { constants } from '@/common'
const modulesFiles = require const modulesFiles = require.context('.', true, /^(?!.*\/init\.js$).*\.js$/)
.context('.', true, /\.js$/)
.keys()
.filter(key => key !== './init.js')
const init = { const init = {
namespaced: true, namespaced: true,
actions: { actions: {
......
<template> <template>
<div class="about"> <div class="not-found">
<router-link :to="{ path: auth.session.defaultPath }">404</router-link> <h1 class="title">404 - 页面未找到</h1>
<p class="message">很抱歉,我们无法找到您要访问的页面。</p>
<router-link :to="{ path: auth.session.defaultPath }" class="link">返回首页</router-link>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
登录即表明您同意 登录即表明您同意
<a :href="`${$config.cdn}/html/agreement.html`" target="_blank"> <a :href="`${$config.cdn}/html/agreement.html`" target="_blank">
<i class="el-icon-d-arrow-left"></i> <i class="el-icon-d-arrow-left"></i>
<span>嘀加企微管家用户服务协议</span> <span>{{ $config.customized.title || '' }}用户服务协议</span>
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</a> </a>
及 及
...@@ -217,6 +217,7 @@ export default { ...@@ -217,6 +217,7 @@ export default {
sessionData.track = track sessionData.track = track
this.setSession(sessionData) this.setSession(sessionData)
this.setTracker(sessionData) this.setTracker(sessionData)
this.storeConfig()
const path = helper.locationPath() const path = helper.locationPath()
const redirect = path?.get('redirect') const redirect = path?.get('redirect')
const to = redirect ? `/${decodeURIComponent(redirect)}` : defaultPath const to = redirect ? `/${decodeURIComponent(redirect)}` : defaultPath
...@@ -247,6 +248,11 @@ export default { ...@@ -247,6 +248,11 @@ export default {
this.code64 = data this.code64 = data
this.loginForm.codeToken = token this.loginForm.codeToken = token
}, },
/**
* 根据传入的错误信息和类型,处理错误并重新获取验证码
* @param {string} message - 错误信息
* @param {boolean} isHasMutilMerchants - 是否存在多个商家
*/
error(message, type = this.isHasMutilMerchants) { error(message, type = this.isHasMutilMerchants) {
this.isLogin = false this.isLogin = false
~[() => (this.errMsg = message), () => Message.error(message)][+type].call() ~[() => (this.errMsg = message), () => Message.error(message)][+type].call()
...@@ -294,6 +300,9 @@ export default { ...@@ -294,6 +300,9 @@ export default {
this.error(error.message, ERROR_TYPE.MESSAGE) this.error(error.message, ERROR_TYPE.MESSAGE)
} }
}, },
storeConfig() {
utils.storage.setSession(constants.SCRM_BASE_CONFIG, this.$config)
},
...mapActions('app', ['login']), ...mapActions('app', ['login']),
...mapActions('auth', ['permission', 'setSession']), ...mapActions('auth', ['permission', 'setSession']),
...mapActions('track', ['setTracker']) ...mapActions('track', ['setTracker'])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!