hi-client/lib/app/modules/kr_chatwoot/controllers/kr_chatwoot_controller.dart

22 lines
506 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:get/get.dart';
/// 客服2Chatwoot控制器
class KRChatwootController extends GetxController {
/// Chatwoot 客服链接
final String kr_chatwootUrl = 'https://app.chatwoot.com/widget?website_token=YXQmh16ymNYW1SVybhnoQQ9w';
/// 加载状态
final RxBool kr_isLoading = true.obs;
@override
void onInit() {
super.onInit();
}
/// 设置加载状态
/// [loading] 是否正在加载
void kr_setLoading(bool loading) {
kr_isLoading.value = loading;
}
}