mirror of
https://gitee.com/tengzhinei/Vue-rap.git
synced 2025-12-24 08:12:44 +08:00
d
This commit is contained in:
@@ -61,6 +61,10 @@
|
||||
}
|
||||
|
||||
function addCss(id,content) {
|
||||
var el=document.getElementById(id);
|
||||
if(el||!content){
|
||||
return;
|
||||
}
|
||||
var style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
style.id=id;
|
||||
@@ -367,10 +371,7 @@
|
||||
this.$options.RapViews.apply(this);
|
||||
},
|
||||
activated:function () {
|
||||
var el=document.getElementById(modName);
|
||||
if(style&&!el){
|
||||
addCss(modName,style);
|
||||
}
|
||||
addCss(modName,style);
|
||||
},
|
||||
deactivated:function () {
|
||||
var el=document.getElementById(modName);
|
||||
|
||||
Reference in New Issue
Block a user