mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(dom) Dialog
This commit is contained in:
parent
18222286f0
commit
ec8cb4c19a
5 changed files with 20 additions and 19 deletions
|
|
@ -10,6 +10,16 @@ window.CloudCmd = (config) => {
|
|||
window.Util = require('../common/util');
|
||||
window.CloudFunc = require('../common/cloudfunc');
|
||||
window.DOM = require('./dom');
|
||||
|
||||
const Dialog = require('./dialog');
|
||||
|
||||
const prefix = getPrefix(config.prefix);
|
||||
const {htmlDialogs} = config;
|
||||
|
||||
DOM.Dialog = Dialog(prefix, {
|
||||
htmlDialogs
|
||||
});
|
||||
|
||||
window.CloudCmd = require('./client');
|
||||
|
||||
require('./listeners');
|
||||
|
|
@ -31,7 +41,6 @@ window.CloudCmd = (config) => {
|
|||
.map((name) => `${name}.js`);
|
||||
|
||||
const urlFiles = getJoinURL(allFiles);
|
||||
const prefix = getPrefix(config.prefix);
|
||||
|
||||
createScript(prefix + urlFiles, () => {
|
||||
window.CloudCmd.init(prefix, config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue