mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-22 08:10:04 +08:00
🐛 修复图片cdn加载问题
This commit is contained in:
parent
2008b62a45
commit
637c1238ae
@ -3,7 +3,7 @@
|
|||||||
"pluginName": "rubick 系统菜单",
|
"pluginName": "rubick 系统菜单",
|
||||||
"description": "rubick 系统菜单",
|
"description": "rubick 系统菜单",
|
||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"logo": "https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/acb761082f4a4b46847e7cd8b180f63c~tplv-k3u1fbpfcp-watermark.image",
|
"logo": "https://pic1.zhimg.com/80/v2-c09780808301668a82e6646cb42f0806_720w.png",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"preload":"preload.js",
|
"preload":"preload.js",
|
||||||
"pluginType": "ui",
|
"pluginType": "ui",
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('feature.settings.global.title') }}
|
{{ $t('feature.settings.global.title') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="superpanel">
|
<!-- <a-menu-item key="superpanel">-->
|
||||||
<template #icon>
|
<!-- <template #icon>-->
|
||||||
<FileAddOutlined />
|
<!-- <FileAddOutlined />-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
{{ $t('feature.settings.superPanel.title') }}
|
<!-- {{ $t('feature.settings.superPanel.title') }}-->
|
||||||
</a-menu-item>
|
<!-- </a-menu-item>-->
|
||||||
<a-menu-item key="localhost">
|
<a-menu-item key="localhost">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<DatabaseOutlined />
|
<DatabaseOutlined />
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
<div class="info-container">
|
<!-- <div class="info-container">-->
|
||||||
<a-result
|
<!-- <a-result-->
|
||||||
class="user-info-result"
|
<!-- class="user-info-result"-->
|
||||||
:title="userInfo.name || $t('feature.settings.account.tips1')"
|
<!-- :title="userInfo.name || $t('feature.settings.account.tips1')"-->
|
||||||
:sub-title="$t('feature.settings.account.tips2')"
|
<!-- :sub-title="$t('feature.settings.account.tips2')"-->
|
||||||
>
|
<!-- >-->
|
||||||
<template #icon>
|
<!-- <template #icon>-->
|
||||||
<a-avatar :size="64" v-if="!userInfo.avatar">
|
<!-- <a-avatar :size="64" v-if="!userInfo.avatar">-->
|
||||||
<template #icon><UserOutlined /></template>
|
<!-- <template #icon><UserOutlined /></template>-->
|
||||||
</a-avatar>
|
<!-- </a-avatar>-->
|
||||||
<a-avatar :src="userInfo.avatar" :size="64" v-else />
|
<!-- <a-avatar :src="userInfo.avatar" :size="64" v-else />-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</a-result>
|
<!-- </a-result>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="settings-container">
|
<div class="settings-container">
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
@ -1,17 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="account">
|
<div class="account">
|
||||||
<a-result
|
<!-- todo 暂时先去掉登录,等小程序做好了再加回来吧 -->
|
||||||
v-if="!userInfo"
|
<!-- <a-result-->
|
||||||
title="请先登录"
|
<!-- v-if="!userInfo"-->
|
||||||
sub-title="登录后可开启用户个性化设置"
|
<!-- title="请先登录"-->
|
||||||
>
|
<!-- sub-title="登录后可开启用户个性化设置"-->
|
||||||
<template #extra>
|
<!-- >-->
|
||||||
<a-button @click="showModal" type="primary">
|
<!-- <template #extra>-->
|
||||||
使用微信小程序登录
|
<!-- <a-button @click="showModal" type="primary">-->
|
||||||
</a-button>
|
<!-- 使用微信小程序登录-->
|
||||||
</template>
|
<!-- </a-button>-->
|
||||||
</a-result>
|
<!-- </template>-->
|
||||||
<Index v-else />
|
<!-- </a-result>-->
|
||||||
|
<Index />
|
||||||
<a-modal :footer="null" v-model:visible="visible">
|
<a-modal :footer="null" v-model:visible="visible">
|
||||||
<a-result
|
<a-result
|
||||||
title="请使用微信扫码登录!"
|
title="请使用微信扫码登录!"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rubick",
|
"name": "rubick",
|
||||||
"version": "2.4.2",
|
"version": "2.4.3",
|
||||||
"author": "muwoo <2424880409@qq.com>",
|
"author": "muwoo <2424880409@qq.com>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"pluginName": "rubick 系统菜单",
|
"pluginName": "rubick 系统菜单",
|
||||||
"description": "rubick 系统菜单",
|
"description": "rubick 系统菜单",
|
||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"logo": "https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/acb761082f4a4b46847e7cd8b180f63c~tplv-k3u1fbpfcp-watermark.image",
|
"logo": "https://pic1.zhimg.com/80/v2-c09780808301668a82e6646cb42f0806_720w.png",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"preload":"preload.js",
|
"preload":"preload.js",
|
||||||
"pluginType": "ui",
|
"pluginType": "ui",
|
||||||
|
@ -150,18 +150,12 @@ class AdapterHandler {
|
|||||||
}
|
}
|
||||||
return adapters;
|
return adapters;
|
||||||
}
|
}
|
||||||
private cleanCache() {
|
|
||||||
spawn('npm', ['cache', 'clean', '-f'], {
|
|
||||||
cwd: this.baseDir,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运行包管理器
|
* 运行包管理器
|
||||||
* @memberof AdapterHandler
|
* @memberof AdapterHandler
|
||||||
*/
|
*/
|
||||||
private async execCommand(cmd: string, modules: string[]): Promise<string> {
|
private async execCommand(cmd: string, modules: string[]): Promise<string> {
|
||||||
this.cleanCache();
|
|
||||||
return new Promise((resolve: any, reject: any) => {
|
return new Promise((resolve: any, reject: any) => {
|
||||||
let args: string[] = [cmd]
|
let args: string[] = [cmd]
|
||||||
.concat(
|
.concat(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user