fix:修复Sass 模块启用函数警告

This commit is contained in:
13895237362 committed 2025-10-28 16:39:48 +08:00
1 parent 9e0264035b
commit a8c169bc91
4 files changed
+8 -6

No files matched your search

+2 -1
View File
@@ -3,7 +3,8 @@
"allow": [
"WebFetch(domain:www.figma.com)",
"Bash(git checkout:*)",
"Read(//mnt/d/work/license-manager/backend/internal/models/**)"
"Read(//mnt/d/work/license-manager/backend/internal/models/**)",
"Bash(npm run build:*)"
],
"deny": [],
"ask": []
@@ -152,7 +152,8 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@import '@/assets/styles/variables.scss';
@use '@/assets/styles/variables.scss' as *;
@use 'sass:color';
.license-search-container {
height: calc(100vh - 80px);
@@ -306,7 +307,7 @@ onMounted(() => {
background-color: $primary-color;
&:hover {
background-color: darken($primary-color, 10%);
background-color: color.adjust($primary-color, $lightness: -10%);
}
}
@@ -315,7 +316,7 @@ onMounted(() => {
background-color: $primary-color;
&:hover {
background-color: darken($primary-color, 10%);
background-color: color.adjust($primary-color, $lightness: -10%);
}
}
}
@@ -80,7 +80,7 @@
</template>
<script setup lang="ts">
import { ref, watch, onMounted, computed } from 'vue'
import { ref, watch, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import type { AuthorizationCode, AuthorizationChangeItem } from '@/api/license'
import { getAuthorizationChanges } from '@/api/license'
@@ -18,7 +18,7 @@
</div>
<div class="device-info-row">
<span class="device-info-item">设备地址:{{ device.last_online_ip || device.activation_ip || '-' }}</span>
<span class="device-info-item">最后活跃时间:{{ formatDateTime(device.last_heartbeat) }}</span>
<span class="device-info-item">最后活跃时间:{{ formatDateTime(device.last_heartbeat || '') }}</span>
</div>
</div>