修复糖果记录报错,修改分享房间参数
This commit is contained in:
@@ -36,6 +36,14 @@ module.exports = {
|
||||
loader: 'vue-loader',
|
||||
options: vueLoaderConfig
|
||||
},
|
||||
{
|
||||
test: /\.(js|vue)$/,
|
||||
loader: 'language-hk-loader',
|
||||
},
|
||||
{
|
||||
test: /\.(js|vue)$/,
|
||||
loader: 'language-tw-loader',
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
|
10
view/peko/vue-project/wishRank/package-lock.json
generated
10
view/peko/vue-project/wishRank/package-lock.json
generated
@@ -5675,6 +5675,16 @@
|
||||
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",
|
||||
"integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw=="
|
||||
},
|
||||
"language-hk-loader": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/language-hk-loader/-/language-hk-loader-1.0.1.tgz",
|
||||
"integrity": "sha512-OmOLx119bkmabkQYn4GvxzMrnp2PAxX6lhHkMwqyaHA6Casi6SyO5uhst1+svPJcR+kA7r8d7H3ri97N1JKXng=="
|
||||
},
|
||||
"language-tw-loader": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/language-tw-loader/-/language-tw-loader-1.0.3.tgz",
|
||||
"integrity": "sha512-fA+6+Dn2IQUBN8QAfVO6ek+flzqdUmPvbKYDNXE/64invrDWIzJiXjv2PB2++F06lKxSso/B9clHUHN9jhx0gg=="
|
||||
},
|
||||
"last-call-webpack-plugin": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-2.1.2.tgz",
|
||||
|
@@ -12,6 +12,8 @@
|
||||
"dependencies": {
|
||||
"axios": "^0.19.0",
|
||||
"fastclick": "^1.0.6",
|
||||
"language-hk-loader": "^1.0.1",
|
||||
"language-tw-loader": "^1.0.3",
|
||||
"lib-flexible": "^0.3.2",
|
||||
"node-sass": "^4.13.0",
|
||||
"postcss-pxtorem": "^5.1.1",
|
||||
|
@@ -17,17 +17,19 @@ export const checkVersion = () => {
|
||||
};
|
||||
}
|
||||
export const EnvCheck = () => {
|
||||
if (window.location.href) {
|
||||
var _url = window.location.href;
|
||||
var res = _url.match(/api.uat.z/);
|
||||
var res1 = _url.match(/120.79.211.243/);
|
||||
var res2 = _url.match(/api.uat/);
|
||||
var res3 = _url.match(/127.0.0.1/);
|
||||
|
||||
if (res || res1 || res2 || res3) {
|
||||
return 'test';
|
||||
} else {
|
||||
return 'live';
|
||||
}
|
||||
}
|
||||
if (window.location.href) {
|
||||
var _url = window.location.href;
|
||||
var res = _url.match(/api.uat.z/);
|
||||
var res1 = _url.match(/120.79.211.243/);
|
||||
var res2 = _url.match(/192.168/);
|
||||
var res3 = _url.match(/127.0.0.1/);
|
||||
var res4 = _url.match(/api.uat/);
|
||||
var res5 = _url.match(/beta./);
|
||||
|
||||
if (res || res1 || res2 || res3 || res4 || res5 ) {
|
||||
return 'test';
|
||||
} else {
|
||||
return 'live';
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user