|
@@ -2,14 +2,22 @@ import { reactive } from 'vue';
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
import { rootDomain } from './defaults';
|
|
import { rootDomain } from './defaults';
|
|
|
|
|
|
|
|
+const getUrl = (path: string) => {
|
|
|
|
+ if (import.meta.env.BASE_URL[0] === '/') {
|
|
|
|
+ return location.protocol + '//' + location.host + '/' + path;
|
|
|
|
+ }else{
|
|
|
|
+ return 'https://' + path + rootDomain;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
const enterprise = reactive({
|
|
const enterprise = reactive({
|
|
name: '乐吾乐',
|
|
name: '乐吾乐',
|
|
home: `https://${rootDomain.slice(1)}`,
|
|
home: `https://${rootDomain.slice(1)}`,
|
|
- account: location.protocol + '//' + location.host + '/account',
|
|
|
|
- v: location.protocol + '//' + location.host + '/v',
|
|
|
|
- '3d': location.protocol + '//' + location.host + '/3d',
|
|
|
|
- '2d': location.protocol + '//' + location.host + '/2d',
|
|
|
|
- admin: location.protocol + '//' + location.host + '/admin',
|
|
|
|
|
|
+ account: getUrl('account'),
|
|
|
|
+ v: getUrl('v'),
|
|
|
|
+ '3d': getUrl('3d'),
|
|
|
|
+ '2d': getUrl('2d'),
|
|
|
|
+ admin: getUrl('admin'),
|
|
helps: [
|
|
helps: [
|
|
{
|
|
{
|
|
name: '产品介绍',
|
|
name: '产品介绍',
|
|
@@ -30,12 +38,12 @@ const enterprise = reactive({
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '企业服务与支持',
|
|
name: '企业服务与支持',
|
|
- url: `https://doc${rootDomain}/document/119296274`,
|
|
|
|
|
|
+ url: `https://doc${rootDomain}/document/120608083`,
|
|
divider: true,
|
|
divider: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '关于我们',
|
|
name: '关于我们',
|
|
- url: `https://${rootDomain.slice(1)}/about.html`,
|
|
|
|
|
|
+ url: `https://${rootDomain.slice(1)}/us`,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
});
|
|
});
|