|
@@ -16,6 +16,19 @@ Vue.use(ElementUI);
|
|
|
|
|
|
// 将 axios 挂载到 Vue 实例上
|
|
|
Vue.prototype.$ajax = axios;
|
|
|
+let region = 'cn'
|
|
|
+// BaseUrl='http://gpt4.cocorobo.cn:8011/';
|
|
|
+if (parent?.location?.href.includes('beta')) {
|
|
|
+ region = 'beta'
|
|
|
+} else if (parent?.location?.href.includes('cn')) {
|
|
|
+ region = 'cn'
|
|
|
+} else if (parent?.location?.href.includes('hk')) {
|
|
|
+ region = 'hk'
|
|
|
+} else if (parent?.location?.href.includes('com')) {
|
|
|
+ region = 'com'
|
|
|
+}
|
|
|
+
|
|
|
+Vue.prototype.$region = region;
|
|
|
|
|
|
new Vue({
|
|
|
router,
|