style: add some notes

This commit is contained in:
vben
2020-10-29 23:01:11 +08:00
parent 7658f4d6e8
commit 2f1fbf8e48
14 changed files with 101 additions and 29 deletions

View File

@@ -23,14 +23,20 @@
name: 'App',
components: { ConfigProvider },
setup() {
// Initialize application settings
useInitAppConfigStore();
// Initialize network monitoring
useListenerNetWork();
// Initialize breakpoint monitoring
createBreakpointListen();
// Get system configuration
const { projectSetting } = useSetting();
// Get ConfigProvider configuration
const { transformCellText } = useConfigProvider();
let lockOn = {};
if (projectSetting.lockTime) {
// Monitor the mouse or keyboard time, used to recalculate the lock screen time
const { on } = useLockPage();
lockOn = on;
}

View File

@@ -22,8 +22,10 @@ setupRouter(app);
// store
setupStore(app);
// Directives
setupDirectives(app);
// error-handle
setupErrorHandle(app);
router.isReady().then(() => {
@@ -35,8 +37,10 @@ if (isDevMode()) {
window.__APP__ = app;
}
// If you do not need to use the mock service in the production environment, you can comment the code
if (isProdMode() && isUseMock()) {
setupProdMockServer();
}
// Used to share app instances in other modules
setApp(app);

View File

@@ -1,3 +1,4 @@
// Application related functions
import type { ProjectConfig } from '/@/types/config';
import type { App } from 'vue';
import { computed, ref } from 'vue';

View File

@@ -1 +1,2 @@
// 接口返回值data不能为这个否则会判为请求失败
export const errorResult = '__ERROR_RESULT__';