mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 08:03:55 +08:00
fix: sync documentation source settings (#13599)
This commit is contained in:
@@ -106,7 +106,7 @@ const to1Panel = () => {
|
||||
};
|
||||
|
||||
const toDoc = () => {
|
||||
window.open(docsUrl.value, '_blank', 'noopener,noreferrer');
|
||||
window.open(docsUrl.value.endsWith('/') ? docsUrl.value : `${docsUrl.value}/`, '_blank', 'noopener,noreferrer');
|
||||
};
|
||||
|
||||
const toEdition = () => {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { isMasterOnlyPermissionCode, setMasterOnlyPermissionCodes, toManageCode
|
||||
import { clearPageStateCache } from '@/utils/page-state-cache';
|
||||
|
||||
const CN_DOCS_URL = 'https://1panel.cn/docs/v2';
|
||||
const INTL_DOCS_URL = 'https://docs.1panel.pro/v2';
|
||||
const INTL_DOCS_URL = 'https://1panel.pro/docs/v2';
|
||||
|
||||
const GlobalStore = defineStore('GlobalState', {
|
||||
state: (): GlobalState => ({
|
||||
|
||||
@@ -52,7 +52,7 @@ const loading = ref();
|
||||
const logoLoadFailed = ref(false);
|
||||
|
||||
const toDoc = () => {
|
||||
window.open(docsUrl.value, '_blank', 'noopener,noreferrer');
|
||||
window.open(docsUrl.value.endsWith('/') ? docsUrl.value : `${docsUrl.value}/`, '_blank', 'noopener,noreferrer');
|
||||
};
|
||||
const toGithub = () => {
|
||||
window.open('https://github.com/1Panel-dev/1Panel', '_blank', 'noopener,noreferrer');
|
||||
|
||||
@@ -213,6 +213,7 @@ import { codeEditorThemeStorageKey } from '@/utils/code-editor-theme';
|
||||
import i18n from '@/lang';
|
||||
|
||||
const {
|
||||
docWithRegion,
|
||||
globalStore,
|
||||
isEnterprise,
|
||||
isIntl,
|
||||
@@ -310,6 +311,8 @@ const search = async () => {
|
||||
form.sessionTimeout = Number(res.data.sessionTimeout || 0);
|
||||
form.docSource = res.data.docSource || 'withByRegion';
|
||||
form.edition = res.data.edition;
|
||||
docWithRegion.value = form.docSource === 'withByRegion';
|
||||
isIntl.value = form.edition === 'intl';
|
||||
|
||||
form.proxyUrl = res.data.proxyUrl;
|
||||
form.proxyType = res.data.proxyType;
|
||||
|
||||
Reference in New Issue
Block a user