[add] 熱更新
This commit is contained in:
0
packages/hot-update-tools/test/TestEnvAli.html
Normal file
0
packages/hot-update-tools/test/TestEnvAli.html
Normal file
14
packages/hot-update-tools/test/TestEnvAli.js
Normal file
14
packages/hot-update-tools/test/TestEnvAli.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
var Fs = require('fire-fs');
|
||||
var Path = require('fire-path');
|
||||
let url = Editor.url(window.packageRoot + "panel/TestEnvAli.html", 'utf8');
|
||||
|
||||
|
||||
module.exports = {
|
||||
init() {
|
||||
Vue.component('TestEnvAli', {
|
||||
props: ['data'],
|
||||
template: Fs.readFileSync(url),
|
||||
});
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user