mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-09 09:46:44 +08:00
Merge pull request #227 from InfinityPacer/v2
This commit is contained in:
@@ -237,7 +237,7 @@ const pipMirrorsItems = [
|
|||||||
// 创建随机字符串
|
// 创建随机字符串
|
||||||
function createRandomString() {
|
function createRandomString() {
|
||||||
const charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_'
|
const charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_'
|
||||||
const array = new Uint8Array(16)
|
const array = new Uint8Array(32)
|
||||||
window.crypto.getRandomValues(array)
|
window.crypto.getRandomValues(array)
|
||||||
SystemSettings.value.Basic.API_TOKEN = Array.from(array, byte => charset[byte % charset.length]).join('')
|
SystemSettings.value.Basic.API_TOKEN = Array.from(array, byte => charset[byte % charset.length]).join('')
|
||||||
}
|
}
|
||||||
@@ -624,7 +624,7 @@ onDeactivated(() => {
|
|||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
<VSwitch
|
<VSwitch
|
||||||
v-model="SystemSettings.Basic.FANART_ENABLE"
|
v-model="SystemSettings.Advanced.FANART_ENABLE"
|
||||||
label="Fanart图片数据源"
|
label="Fanart图片数据源"
|
||||||
hint="使用 fanart.tv 的图片数据"
|
hint="使用 fanart.tv 的图片数据"
|
||||||
persistent-hint
|
persistent-hint
|
||||||
|
|||||||
Reference in New Issue
Block a user