回滚更新
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "material-editor",
 | 
					  "name": "material-editor",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "version": "1.0.12",
 | 
					  "version": "1.0.13",
 | 
				
			||||||
  "type": "module",
 | 
					  "type": "module",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "dev": "vite",
 | 
					    "dev": "vite",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,13 +166,11 @@ const materialInfo = reactive({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
onMounted(async () => {
 | 
					onMounted(async () => {
 | 
				
			||||||
    await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
 | 
					    await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
 | 
				
			||||||
    UpdateTexture();
 | 
					 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
watch(() => props.textureSrcList, async (val) => {
 | 
					watch(() => props.textureSrcList, async (val) => {
 | 
				
			||||||
    _textureSrc.value = val;
 | 
					    _textureSrc.value = val;
 | 
				
			||||||
    await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
 | 
					    await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
 | 
				
			||||||
    UpdateTexture();
 | 
					 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
watch(textureAdjustment, async (val) => {
 | 
					watch(textureAdjustment, async (val) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user