@@ -40,8 +40,7 @@ module.exports = {
pathRewrite: ['^' + process.env.VUE_APP_BASE_API]: ''
}
- },
- after: require('./mock/mock-server.js')
+ }
},
configureWebpack: {
// provide the app's title in webpack's name field, so that
@@ -7,7 +7,8 @@
<script>
export default {
name: 'App',
- created() {
+ created() {
+
if (sessionStorage.getItem('store')) {
this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem(
'store'))));
@@ -49,7 +49,7 @@ const $chat = {
init() {
YeIMUniSDK.init({
baseURL: config.baseURL + '/im', // YeIMServer http url (如无特殊需求,服务端启动后仅需修改ip或者域名即可)
- socketURL: 'wss://www.waywish.com/im/im', // YeIMServer socket url(如无特殊需求,服务端启动后仅需修改ip或者域名即可)
+ socketURL: 'wss://www.workark.com/im/im', // YeIMServer socket url(如无特殊需求,服务端启动后仅需修改ip或者域名即可)
/**
* 日志等级
* 0 普通日志,日志量较多,接入时建议使用
@@ -51,7 +51,7 @@ const $chat = {
@@ -1,7 +1,7 @@
const {
defineConfig
} = require('@vue/cli-service');
-const dev_baseURL = 'https://www.waywish.com';
+const dev_baseURL = 'https://www.workark.com';
const isProduction = process.env.NODE_ENV === 'production'; //是否为生产环境
const path = require("path");