mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-21 15:00:28 +08:00
Compare commits
1 Commits
perf/Theme
...
refactor/f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c31f9245ed |
@@ -6,7 +6,8 @@ export default defineFakeRoute([
|
|||||||
method: "post",
|
method: "post",
|
||||||
response: () => {
|
response: () => {
|
||||||
return {
|
return {
|
||||||
success: true,
|
code: 0,
|
||||||
|
message: "操作成功",
|
||||||
data: {
|
data: {
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { http } from "@/utils/http";
|
import { http } from "@/utils/http";
|
||||||
|
|
||||||
type Result = {
|
type Result = {
|
||||||
success: boolean;
|
code: number;
|
||||||
|
message: string;
|
||||||
data?: {
|
data?: {
|
||||||
/** 列表数据 */
|
/** 列表数据 */
|
||||||
list: Array<any>;
|
list: Array<any>;
|
||||||
|
|||||||
@@ -345,8 +345,8 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
@click="setLayoutThemeColor(item.themeColor)"
|
@click="setLayoutThemeColor(item.themeColor)"
|
||||||
>
|
>
|
||||||
<el-icon
|
<el-icon
|
||||||
class="mt-px"
|
style="margin: 0.1em 0.1em 0 0"
|
||||||
:size="20"
|
:size="17"
|
||||||
:color="getThemeColor(item.themeColor)"
|
:color="getThemeColor(item.themeColor)"
|
||||||
>
|
>
|
||||||
<IconifyIconOffline :icon="Check" />
|
<IconifyIconOffline :icon="Check" />
|
||||||
@@ -538,24 +538,17 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
}
|
}
|
||||||
|
|
||||||
.theme-color {
|
.theme-color {
|
||||||
display: flex;
|
height: 20px;
|
||||||
gap: 8px;
|
|
||||||
margin-top: 8px;
|
|
||||||
|
|
||||||
li {
|
li {
|
||||||
position: relative;
|
float: left;
|
||||||
width: 21px;
|
height: 20px;
|
||||||
height: 21px;
|
margin-right: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: rgb(0 0 0 / 15%) 0 0 0 1px inset;
|
|
||||||
transition: all 0.2s ease;
|
|
||||||
|
|
||||||
&:hover {
|
&:nth-child(1) {
|
||||||
box-shadow:
|
border: 1px solid #ddd;
|
||||||
rgb(0 0 0 / 25%) 0 0 0 1px inset,
|
|
||||||
0 2px 4px rgb(0 0 0 / 15%);
|
|
||||||
transform: scale(1.1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,12 +38,14 @@ const dataLoading = ref(true);
|
|||||||
|
|
||||||
const getCardListData = async () => {
|
const getCardListData = async () => {
|
||||||
try {
|
try {
|
||||||
const { data } = await getCardList();
|
const { code, data } = await getCardList();
|
||||||
|
if (code === 0) {
|
||||||
productList.value = data.list;
|
productList.value = data.list;
|
||||||
pagination.value = {
|
pagination.value = {
|
||||||
...pagination.value,
|
...pagination.value,
|
||||||
total: data.list.length
|
total: data.list.length
|
||||||
};
|
};
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user