fix: lint
parent
adecddae67
commit
b2cf1646a4
|
|
@ -64,12 +64,12 @@ const [Form, formApi] = useVbenForm({
|
|||
|
||||
// ================= 商品选择相关 =================
|
||||
/** SKU 扩展类型 */
|
||||
interface SkuExtension extends MallSpuApi.Sku {
|
||||
interface SkuExtension extends MallSpuApi.Sku {
|
||||
productConfig: MallDiscountActivityApi.DiscountProduct;
|
||||
}
|
||||
|
||||
/** SPU 扩展类型 */
|
||||
interface SpuExtension extends MallSpuApi.Spu {
|
||||
interface SpuExtension extends MallSpuApi.Spu {
|
||||
skus?: SkuExtension[];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ function openRightMessage(item: MallKefuConversationApi.Conversation) {
|
|||
|
||||
/** 获得消息类型 */
|
||||
const getConversationDisplayText = computed(
|
||||
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
||||
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
||||
switch (lastMessageContentType) {
|
||||
case KeFuMessageContentTypeEnum.IMAGE: {
|
||||
return '[图片消息]';
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import ProductBrowsingHistory from './product-browsing-history.vue';
|
|||
|
||||
const activeTab = ref<string>('会员信息');
|
||||
|
||||
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
||||
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
||||
|
||||
/** tab 切换 */
|
||||
const productBrowsingHistoryRef =
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ const loadHistory = ref(false); // 加载历史消息
|
|||
|
||||
/** 获悉消息内容 */
|
||||
const getMessageContent = computed(
|
||||
() => (item: any) => jsonParse(item.content),
|
||||
() => (item: any) => jsonParse(item.content),
|
||||
);
|
||||
|
||||
/** 获得消息列表 */
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const emits = defineEmits<{
|
|||
}>();
|
||||
|
||||
/** 选择赠送的优惠类型拓展 */
|
||||
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
||||
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
||||
giveCount?: number;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,12 +64,12 @@ const [Form, formApi] = useVbenForm({
|
|||
|
||||
// ================= 商品选择相关 =================
|
||||
/** SKU 扩展类型 */
|
||||
interface SkuExtension extends MallSpuApi.Sku {
|
||||
interface SkuExtension extends MallSpuApi.Sku {
|
||||
productConfig: MallDiscountActivityApi.DiscountProduct;
|
||||
}
|
||||
|
||||
/** SPU 扩展类型 */
|
||||
interface SpuExtension extends MallSpuApi.Spu {
|
||||
interface SpuExtension extends MallSpuApi.Spu {
|
||||
skus?: SkuExtension[];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ function openRightMessage(item: MallKefuConversationApi.Conversation) {
|
|||
|
||||
/** 获得消息类型 */
|
||||
const getConversationDisplayText = computed(
|
||||
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
||||
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
||||
switch (lastMessageContentType) {
|
||||
case KeFuMessageContentTypeEnum.IMAGE: {
|
||||
return '[图片消息]';
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import ProductBrowsingHistory from './product-browsing-history.vue';
|
|||
|
||||
const activeTab = ref<string>('会员信息');
|
||||
|
||||
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
||||
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
||||
|
||||
/** tab 切换 */
|
||||
const productBrowsingHistoryRef =
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ const loadHistory = ref(false); // 加载历史消息
|
|||
|
||||
/** 获悉消息内容 */
|
||||
const getMessageContent = computed(
|
||||
() => (item: any) => jsonParse(item.content),
|
||||
() => (item: any) => jsonParse(item.content),
|
||||
);
|
||||
|
||||
/** 获得消息列表 */
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const emits = defineEmits<{
|
|||
}>();
|
||||
|
||||
/** 选择赠送的优惠类型拓展 */
|
||||
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
||||
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
||||
giveCount?: number;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
*/
|
||||
export function isUrl(path: string): boolean {
|
||||
try {
|
||||
new URL(path);
|
||||
return true;
|
||||
return Boolean(new URL(path));
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue